ci(digest): unset checkout extraheader so PAT push triggers CI (#59)
Problem: actions/checkout sets an http.extraheader with GITHUB_TOKEN that overrides any credentials in the remote URL, so git push uses GITHUB_TOKEN regardless of the URL — suppressing CI triggers. Solution: unset the extraheader before pushing, forcing git to use the DIGEST_PAT embedded in the remote URL.
This commit is contained in:
parent
280b3f0f62
commit
22d9f521d7
1 changed files with 1 additions and 0 deletions
1
.github/workflows/upstream-digest.yml
vendored
1
.github/workflows/upstream-digest.yml
vendored
|
|
@ -36,6 +36,7 @@ jobs:
|
|||
git checkout -b "${BRANCH}"
|
||||
git add doc/upstream.md
|
||||
git commit -m "docs(upstream): upstream digest $(date +%Y-%m-%d)"
|
||||
git config --unset http.https://github.com/.extraheader
|
||||
git remote set-url origin "https://x-access-token:${{ secrets.DIGEST_PAT }}@github.com/barrettruth/canola.nvim.git"
|
||||
git push --force origin "${BRANCH}"
|
||||
if ! GH_TOKEN="${{ secrets.GITHUB_TOKEN }}" gh pr list --head "${BRANCH}" --state open --json number --jq '.[0].number' | grep -q .; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue