Skip to content

Commit 2d111ba

Browse files
committed
Fix checkout step in GH release action
1 parent 8cc5fa3 commit 2d111ba

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/release-and-deploy.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ on:
3232
jobs:
3333
build:
3434
runs-on: ubuntu-latest
35+
permissions:
36+
contents: write
37+
pull-requests: write
3538

3639
steps:
3740
- name: Check write access to repo
@@ -60,8 +63,20 @@ jobs:
6063
echo Tag v${{ inputs.release_version }} already exists, release aborted >> $GITHUB_STEP_SUMMARY
6164
exit 1
6265
66+
67+
6368
# Set up java with maven cache
64-
- uses: actions/checkout@v6
69+
- name: Checkout
70+
uses: actions/checkout@v6
71+
with:
72+
token: ${{ secrets.QUDTLIB_BOT_GITHUB_TOKEN }}
73+
fetch-depth: 0
74+
75+
- name: Fix git authentication headers
76+
run: |
77+
git config --global --unset http.https://github.com/.extraheader || true
78+
git config --local --unset http.https://github.com/.extraheader || true
79+
6580
- name: Set up JDK 21
6681
uses: actions/setup-java@v5
6782
with:

0 commit comments

Comments
 (0)