Skip to content

Commit 1a97751

Browse files
committed
refac
1 parent dc4dab7 commit 1a97751

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ jobs:
4444
env:
4545
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646
run: |
47-
gh release create "v${{ steps.pkg.outputs.version }}" \
48-
--title "v${{ steps.pkg.outputs.version }}" \
49-
--notes-file /tmp/release-notes.md
47+
if gh release view "v${{ steps.pkg.outputs.version }}" &>/dev/null; then
48+
echo "Release v${{ steps.pkg.outputs.version }} already exists — skipping creation"
49+
else
50+
gh release create "v${{ steps.pkg.outputs.version }}" \
51+
--title "v${{ steps.pkg.outputs.version }}" \
52+
--notes-file /tmp/release-notes.md
53+
fi
5054
5155
- name: Archive source
5256
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)