Skip to content

Commit bc8ec8d

Browse files
authored
build: adjust actions checkout ref parameter on release (#1669)
1 parent d5e1f01 commit bc8ec8d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ jobs:
144144
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
145145
with:
146146
fetch-depth: 0
147-
ref: ${{ github.head_ref || github.ref_name }}
147+
ref: ${{ github.ref }}
148+
149+
- name: Create local branch name
150+
run: git switch -C ${{ github.head_ref || github.ref_name }}
148151

149152
# Do a dry run of PSR
150153
- name: Test release

0 commit comments

Comments
 (0)