Skip to content

Commit

Permalink
Try different approach
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilKWarmdahl committed Dec 2, 2024
1 parent e87c4bb commit ba81a3a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,20 @@ jobs:
fi

OUT_FILENAME_EXE="${VERSION}/${TARGET_NET}/${FILENAME_EXE}"
aws s3 ls ${{ env.S3_BUCKET }}/$OUT_FILENAME_EXE
OUT_OBJECT=${{ env.S3_BUCKET }}/$OUT_FILENAME_EXE
aws s3 ls $OUT_OBJECT
EC=$?
if [ $EC -eq 0 ]; then
echo "Executable already exist"
exit 1
else
echo "OUT_OBJECT=${{ env.S3_BUCKET }}/$OUT_FILENAME_EXE" >> $GITHUB_ENV
echo "OUT_OBJECT=$OUT_OBJECT" >> $GITHUB_ENV
echo "ERROR_CODE=$EC" >> $GITHUB_ENV
if [ EC -eq 0 ]; then
echo "$OUT_OBJECT already exist"
elif [ $EC -ne 254 ]; then
echo "Error: $EC"
fi


- name: setup
if: ${{ env.ERROR_CODE == 254 }}
shell: bash
run: |
# Print system info
Expand Down

0 comments on commit ba81a3a

Please sign in to comment.