Skip to content

Commit 7cb8c48

Browse files
committed
fix(release): update branch reference in release workflow to use head_branch
1 parent 034c3da commit 7cb8c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: actions/checkout@v4
4646
with:
4747
fetch-depth: 0
48-
ref: ${{ github.event.workflow_run.head_sha }}
48+
ref: ${{ github.event.workflow_run.head_branch }}
4949

5050
- name: Setup PNPM
5151
uses: pnpm/action-setup@v4
@@ -91,7 +91,7 @@ jobs:
9191
id: changesets
9292
uses: changesets/action@v1
9393
with:
94-
branch: naga
94+
branch: ${{ github.event.workflow_run.head_branch || 'naga' }}
9595
version: pnpm changeset version
9696
publish: pnpm changeset publish --access public
9797
commit: 'chore(release): version packages'

0 commit comments

Comments
 (0)