Skip to content

Commit 3fdc0cc

Browse files
committed
fix: fix the old version error
1 parent 65e5895 commit 3fdc0cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/beta.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ jobs:
147147
TARGET_SHA: ${{ steps.beta_meta.outputs.commit_sha }}
148148
run: |
149149
if gh release view "$RELEASE_TAG" >/dev/null 2>&1; then
150+
git tag -f "$RELEASE_TAG" "$TARGET_SHA"
151+
git push --force origin "refs/tags/$RELEASE_TAG"
150152
gh release edit "$RELEASE_TAG" \
151153
--title "$RELEASE_TAG" \
152154
--notes-file "$NOTES_FILE" \

.github/workflows/macos-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
- name: Checkout
104104
uses: actions/checkout@v6
105105
with:
106-
ref: ${{ needs.resolve_context.outputs.tag != '' && needs.resolve_context.outputs.tag || github.ref }}
106+
ref: ${{ github.event_name == 'release' && needs.resolve_context.outputs.tag || github.ref }}
107107
fetch-depth: 0
108108

109109
- name: Setup Node

0 commit comments

Comments
 (0)