diff --git a/.github/workflows/fetch-release.yml b/.github/workflows/fetch-release.yml index 4e7bc38..6fbb2dd 100644 --- a/.github/workflows/fetch-release.yml +++ b/.github/workflows/fetch-release.yml @@ -68,7 +68,7 @@ jobs: run: | for file in artifacts/*; do echo "Uploading $file..." - gh release upload ${{ env.tag_name }} "$file" --clobber + gh release upload ${{ env.build_number }} "$file" --clobber done env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -77,7 +77,7 @@ jobs: run: | if ! ls artifacts | grep -q 'ubuntu-latest.zip'; then echo "ubuntu-latest.zip not found. Deleting release..." - gh release delete ${{ env.tag_name }} --yes + gh release delete ${{ env.build_number }} --yes exit 1 fi env: