From 256e28c7861bc5221f1e925df4b498bcb855343c Mon Sep 17 00:00:00 2001 From: dijunkun Date: Fri, 2 Oct 2026 03:56:52 +0800 Subject: [PATCH] [ci] allow release retries for existing source tags --- .github/workflows/build.yml | 3 ++- .github/workflows/release-mobile.yml | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c109e14..6d64b112 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/release-mobile.yml b/.github/workflows/release-mobile.yml index 5b1c265c..0c57e1ff 100644 --- a/.github/workflows/release-mobile.yml +++ b/.github/workflows/release-mobile.yml @@ -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