We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32ebaae commit 5ab6b72Copy full SHA for 5ab6b72
.github/workflows/release.yml
@@ -64,6 +64,18 @@ jobs:
64
run: |
65
git config user.name "github-actions[bot]"
66
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
75
76
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
79
80
- name: Commit & push with PAT
81
uses: actions-js/push@v1.4
0 commit comments