We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b1bc5f commit 3c369b7Copy full SHA for 3c369b7
.github/workflows/release.yml
@@ -27,7 +27,7 @@ jobs:
27
echo "Checking if release $version exists..."
28
29
# Check if the release exists by querying the GitHub API
30
- if gh api repos/${{ github.repository }}/releases/tags/$VERSION --silent; then
+ if gh api repos/${{ github.repository }}/releases/tags/$VERSION --silent || false; then
31
echo "Release $VERSION exists."
32
echo "::set-output name=exists::true"
33
else
@@ -67,6 +67,7 @@ jobs:
67
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68
69
- name: Create release and upload artifacts
70
+ if: steps.check_release.outputs.exists == 'false'
71
run: |
72
echo "Creating a release for version $version"
73
0 commit comments