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:
Barrett Ruth 2026-03-03 15:29:03 -05:00 committed by GitHub
parent b7c65a1d4b
commit 0c930bda2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 \