From 784ca4d8893a31df11c9e984b1224ba0a0f642bd Mon Sep 17 00:00:00 2001 From: Andreas Heinrich Date: Wed, 10 Jul 2024 07:06:38 +0200 Subject: [PATCH] fix if statement Signed-off-by: Andreas Heinrich --- .github/workflows/deploy-single-docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-single-docker-image.yml b/.github/workflows/deploy-single-docker-image.yml index 440c072..6ed8d83 100644 --- a/.github/workflows/deploy-single-docker-image.yml +++ b/.github/workflows/deploy-single-docker-image.yml @@ -138,11 +138,11 @@ jobs: run: | echo "Checking for changes in paths ${{ steps.setup-regex.outputs.regex }}.." changed_files="$(git diff --name-only ${{ inputs.github_ref_before }} ${{ inputs.github_ref_after }} | grep -E '${{ steps.setup-regex.outputs.regex }}')" || EXIT_CODE=$? - if [ "$EXIT_CODE" -eq "1" ]; then + if [ $EXIT_CODE -eq 1 ]; then echo "No changes detected in ${{ steps.setup-regex.outputs.regex }}!🔍" echo "changes_detected=false" >> $GITHUB_OUTPUT exit 0 - elif [ "$EXIT_CODE" -ne "0" ]; then + elif [ $EXIT_CODE -ne 0 ]; then echo "Error while checking for changes in ${{ steps.setup-regex.outputs.regex }}!❌" exit $EXIT_CODE else