From 42da70b4a259d63fcb3cadcaaec0aadbd53c2ddb Mon Sep 17 00:00:00 2001 From: Salah Aldeen Al Saleh Date: Mon, 11 Dec 2023 15:40:06 +0000 Subject: [PATCH] fix image-exists github output --- .github/actions/build-push-image-with-apko/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/build-push-image-with-apko/action.yml b/.github/actions/build-push-image-with-apko/action.yml index 38cc422a69..ba3dff1343 100644 --- a/.github/actions/build-push-image-with-apko/action.yml +++ b/.github/actions/build-push-image-with-apko/action.yml @@ -27,13 +27,13 @@ runs: run: | set -euo pipefail if docker manifest inspect ${{ inputs.image-name }} > /dev/null 2>&1; then - echo "image-exists='true'" >> "$GITHUB_ENV" + echo "image-exists=true" >> "$GITHUB_OUTPUT" else - echo "image-exists='false'" >> "$GITHUB_ENV" + echo "image-exists=false" >> "$GITHUB_OUTPUT" fi - uses: chainguard-images/actions/apko-publish@main - if: steps.check-image-exists.outputs.image-exists == 'false' + if: ${{ steps.check-image-exists.outputs.image-exists == 'false' }} with: config: ${{ inputs.apko-config }} archs: x86_64