diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92ab39fc39..cde26d01c0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,9 +44,13 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create "v${{ steps.pkg.outputs.version }}" \ - --title "v${{ steps.pkg.outputs.version }}" \ - --notes-file /tmp/release-notes.md + if gh release view "v${{ steps.pkg.outputs.version }}" &>/dev/null; then + echo "Release v${{ steps.pkg.outputs.version }} already exists — skipping creation" + else + gh release create "v${{ steps.pkg.outputs.version }}" \ + --title "v${{ steps.pkg.outputs.version }}" \ + --notes-file /tmp/release-notes.md + fi - name: Archive source uses: actions/upload-artifact@v4