Skip to content

Commit

Permalink
Exit when file exist
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilKWarmdahl committed Dec 2, 2024
1 parent 126a04f commit 99ed530
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ jobs:
FILENAME_EXE="concordium-desktop-wallet-${TARGET_NET}-${VERSION}.exe"
fi

OUT_FILENAME_EXE="${VERSION}/${TARGET_NET}/${FILENAME_EXE}/test"
OUT_FILENAME_EXE="${VERSION}/${TARGET_NET}/${FILENAME_EXE}"
aws s3 ls ${{ env.S3_BUCKET }}/$OUT_FILENAME_EXE
EC=$?
if [EC -eq 254]; then
if [$EC -eq 254]; then
echo "Executable already exist"
#exit 1
exit 1
else
echo "OUT_OBJECT=${{ env.S3_BUCKET }}/$OUT_FILENAME_EXE" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 99ed530

Please sign in to comment.