Skip to content

Commit 6544822

Browse files
committed
ci: fixes auth token setup
1 parent 99fdcf8 commit 6544822

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/promote-shipped-apis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/checkout@v6
1818
with:
1919
fetch-depth: 0
20+
token: ${{ steps.app-token.outputs.token }}
2021

2122
- name: Generate GitHub App token
2223
id: app-token
@@ -32,7 +33,7 @@ jobs:
3233
run: |
3334
git config --global user.name "github-actions[bot]"
3435
git config --global user.email "github-actions[bot]@users.noreply.github.com"
35-
git config --global url."https://x-access-token:$env:GH_TOKEN@github.com/".insteadOf "https://github.com/"
36+
git config --global url."https://$($env:GH_TOKEN)@github.com/".insteadOf "https://github.com/"
3637
3738
- name: Check for existing PR
3839
id: check_pr

0 commit comments

Comments
 (0)