Skip to content

Commit 3c8e074

Browse files
committed
fix(ci): checkout actual tagged commit on workflow_dispatch, not main HEAD
1 parent d12f5df commit 3c8e074

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
uses: actions/checkout@v6
5757
with:
5858
fetch-depth: 0
59+
# On workflow_dispatch, check out the actual tagged commit — not main HEAD.
60+
# On tag push, github.ref already points at the tag; this is a no-op.
61+
ref: ${{ github.event.inputs.tag || github.ref }}
5962

6063
- name: Select Xcode 26
6164
run: sudo xcode-select -s /Applications/Xcode_26.4.app

0 commit comments

Comments
 (0)