ci(digest): create digest PR with PAT so CI triggers (#50)
Problem: GITHUB_TOKEN-created PRs suppress pull_request workflow triggers, so CI never runs and auto-merge stalls indefinitely. Solution: use DIGEST_PAT to create the PR. A PAT-created PR is treated as a real user action, triggering CI normally. Auto-approve handles the review requirement, auto-merge fires when checks pass.
This commit is contained in:
parent
b7c65a1d4b
commit
0c930bda2b
1 changed files with 1 additions and 1 deletions
2
.github/workflows/upstream-digest.yml
vendored
2
.github/workflows/upstream-digest.yml
vendored
|
|
@ -38,7 +38,7 @@ jobs:
|
||||||
git commit -m "docs(upstream): upstream digest $(date +%Y-%m-%d)"
|
git commit -m "docs(upstream): upstream digest $(date +%Y-%m-%d)"
|
||||||
git push --force origin "${BRANCH}"
|
git push --force origin "${BRANCH}"
|
||||||
if ! gh pr list --head "${BRANCH}" --state open --json number --jq '.[0].number' | grep -q .; then
|
if ! gh pr list --head "${BRANCH}" --state open --json number --jq '.[0].number' | grep -q .; then
|
||||||
PR_URL=$(gh pr create \
|
PR_URL=$(GH_TOKEN="${{ secrets.DIGEST_PAT }}" gh pr create \
|
||||||
--title "docs(upstream): upstream digest" \
|
--title "docs(upstream): upstream digest" \
|
||||||
--body "Automated weekly digest of new upstream activity. Triage by updating statuses and notes." \
|
--body "Automated weekly digest of new upstream activity. Triage by updating statuses and notes." \
|
||||||
--base main \
|
--base main \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue