Skip to content

Commit 5ab6b72

Browse files
committed
chore: update pat
1 parent 32ebaae commit 5ab6b72

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ jobs:
6464
run: |
6565
git config user.name "github-actions[bot]"
6666
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
67+
- name: Sanity check PAT identity
68+
env:
69+
WORKFLOW_PAT: ${{ secrets.WORKFLOW_PAT }}
70+
run: |
71+
curl -sSf -H "Authorization: Bearer $WORKFLOW_PAT" https://api.github.com/user | jq -r .login
72+
73+
- name: Set remote to use PAT
74+
env:
75+
WORKFLOW_PAT: ${{ secrets.WORKFLOW_PAT }}
76+
run: |
77+
git remote set-url origin "https://x-access-token:${WORKFLOW_PAT}@github.com/${{ github.repository }}.git"
78+
git ls-remote origin 1>/dev/null
6779
6880
- name: Commit & push with PAT
6981
uses: actions-js/push@v1.4

0 commit comments

Comments
 (0)