Skip to content

Commit e20f63a

Browse files
committed
fix(github-actions): add missing checkout step
1 parent 05d895c commit e20f63a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
(startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix/'))
2424

2525
steps:
26+
- name: Set GitHub token
27+
run: |
28+
echo "GH_TOKEN=${{ secrets.GH_TOKEN }}" >> $GITHUB_ENV
29+
30+
- name: Checkout repository
31+
uses: actions/checkout@v3
32+
with:
33+
ref: ${{ github.event.pull_request.head.ref }}
34+
token: ${{ env.GH_TOKEN }}
35+
2636
- name: Extract version from release branch
2737
if: startsWith(github.event.pull_request.head.ref, 'release/')
2838
run: |
@@ -37,10 +47,6 @@ jobs:
3747
VERSION=${BRANCH_NAME#hotfix/}
3848
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
3949
40-
- name: Set GitHub CLI token
41-
run: |
42-
echo "GH_TOKEN=${{ secrets.GH_TOKEN }}" >> $GITHUB_ENV
43-
4450
- name: Create release
4551
env:
4652
RELEASE_TAG: "${{ env.TAG_PREFIX }}${{ env.RELEASE_VERSION }}"

0 commit comments

Comments
 (0)