Skip to content

Commit

Permalink
Fixed script exiting automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
dszlachta committed Jul 18, 2024
1 parent 78368f2 commit 79c7b90
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ jobs:
name: Test Docker Image
run: |
docker run --rm --entrypoint chifra ${{ env.TEST_TAG }} --version 2> /tmp/version
grep `echo ${{ inputs.tag }} | sed 's/v//'` /tmp/version
if [ $? != 0 ]; then
echo "VERSION MISMATCH"
cat /tmp/version
exit 1
if [ -z $(grep `echo ${{ inputs.tag }} | sed 's/v//'` /tmp/version) ]
then
echo "VERSION MISMATCH"
cat /tmp/version
exit 1
else
echo "PASS"
fi

# Now we know it's working, so we will commit the changed VERSION file and create new tag
Expand Down

0 comments on commit 79c7b90

Please sign in to comment.