Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
acocalypso authored Nov 14, 2023
1 parent 64f8dca commit 6e39ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ jobs:
id: check_release
run: |
tag=v${{ steps.extract_version.outputs.version }}
existing_release=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/${{ github.repository }}/releases/tags/$tag)
if [ -z "$existing_release" ]; then
existing_release=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/${{ github.repository }}/releases/tags/$tag | jq -e .id)
if [ "$existing_release" == "null" ]; then
echo "::set-output name=release_exists::false"
else
echo "::set-output name=release_exists::true"
Expand Down

0 comments on commit 6e39ffd

Please sign in to comment.