From 99ed530087ae5307cdbbea50b5fa8f80a8bae837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20K=C3=B8hler=20Warmdahl?= Date: Mon, 2 Dec 2024 08:47:32 +0100 Subject: [PATCH] Exit when file exist --- .github/workflows/release.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 92e4dbc74..70e3b3452 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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