[ci] allow release retries for existing source tags

This commit is contained in:
dijunkun
2026-10-02 03:56:52 +08:00
parent 758bfaa7a0
commit 256e28c786
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -671,7 +671,8 @@ jobs:
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.VERSION_WITH_V }}
target_commitish: ${{ github.sha }}
# The pushed tag already determines the release source commit.
target_commitish: ${{ github.event.repository.default_branch }}
name: Release ${{ steps.version.outputs.VERSION_WITH_V }}
draft: false
prerelease: false
+3 -1
View File
@@ -142,7 +142,9 @@ jobs:
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.SOURCE_TAG }}
target_commitish: ${{ env.SOURCE_SHA }}
# prepare requires an existing tag; this does not move its source commit.
# Using the default branch lets GITHUB_TOKEN update older release metadata.
target_commitish: ${{ github.event.repository.default_branch }}
name: ${{ env.PLATFORM == 'ios' && 'iOS' || 'Android' }} ${{ env.VERSION }}
draft: false
prerelease: false