Skip to content

Commit 3644b37

Browse files
committed
Explicitly checkout main branch in release workflows
- should checkout at main branch, not default branch
1 parent 8909b30 commit 3644b37

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎.github/workflows/github-release.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
2121
with:
22+
ref: main
2223
fetch-depth: 0
2324

2425
- name: Get version from package.json
@@ -67,6 +68,7 @@ jobs:
6768
- name: Checkout code
6869
uses: actions/checkout@v4
6970
with:
71+
ref: main
7072
fetch-depth: 0
7173

7274
- name: Get version from manifest.json

0 commit comments

Comments
 (0)