Skip to content

Commit 3c369b7

Browse files
authored
fix script (#52)
1 parent 2b1bc5f commit 3c369b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
echo "Checking if release $version exists..."
2828
2929
# Check if the release exists by querying the GitHub API
30-
if gh api repos/${{ github.repository }}/releases/tags/$VERSION --silent; then
30+
if gh api repos/${{ github.repository }}/releases/tags/$VERSION --silent || false; then
3131
echo "Release $VERSION exists."
3232
echo "::set-output name=exists::true"
3333
else
@@ -67,6 +67,7 @@ jobs:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6868

6969
- name: Create release and upload artifacts
70+
if: steps.check_release.outputs.exists == 'false'
7071
run: |
7172
echo "Creating a release for version $version"
7273

0 commit comments

Comments
 (0)