Skip to content

Commit 3bbe6cc

Browse files
committed
fix(ci-cd): release workflow fetches the outdated commit on release package jobs
1 parent 6887f02 commit 3bbe6cc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
persist-credentials: false
1414
fetch-depth: 0
@@ -46,10 +46,11 @@ jobs:
4646
permissions:
4747
id-token: write
4848
steps:
49-
- uses: actions/checkout@v3
49+
- uses: actions/checkout@v4
5050
with:
5151
persist-credentials: false
5252
fetch-depth: 0
53+
ref: ${{ github.ref }}
5354

5455
- name: Set up Python 3.11
5556
uses: actions/setup-python@v1
@@ -84,10 +85,11 @@ jobs:
8485
permissions:
8586
id-token: write
8687
steps:
87-
- uses: actions/checkout@v3
88+
- uses: actions/checkout@v4
8889
with:
8990
persist-credentials: false
9091
fetch-depth: 0
92+
ref: ${{ github.ref }}
9193

9294
- name: Set up Python 3.11
9395
uses: actions/setup-python@v1

0 commit comments

Comments
 (0)