From b5cb34a6b6d1ef562eaf48826e78b01aec8e5bfa Mon Sep 17 00:00:00 2001 From: Varun Sharma Date: Mon, 8 Jan 2024 07:06:29 -0800 Subject: [PATCH] Update ci-cd.yml --- .github/workflows/ci-cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index d75ced1..e48e3b6 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -148,7 +148,7 @@ jobs: run: | should_push_value='false' if [[ '${{ github.event_name }}' == 'push' ]]; then - if [[ ${{ startsWith(github.ref, 'refs/heads/main') }} && ${{ needs.config-deploy.outputs.image-exists }} != 'true' ]]; then + if [[ ${{ startsWith(github.ref, 'refs/heads/main') }} && '${{ needs.config-deploy.outputs.image-exists }}' != 'true' ]]; then should_push_value='true' fi fi @@ -180,7 +180,7 @@ jobs: actions: read # for detecting the Github Actions environment. id-token: write # for creating OIDC tokens for signing. packages: write # for uploading attestations. - if: ${{ needs.deploy.outputs.should_push }} + if: ${{ needs.deploy.outputs.should_push == 'true' }} uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.9.0 with: image: ${{ needs.deploy.outputs.image }}