Skip to content

Commit ca668fb

Browse files
tclemCopilot
andcommitted
Dispatch CI for automated updates
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 6d357ec commit ca668fb

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/scripts/apply-dependency-update

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,6 @@ else
172172
--title "$title" \
173173
--body-file "$RUNNER_TEMP/pr-body.md"
174174
fi
175+
176+
gh api -X POST "repos/$GITHUB_REPOSITORY/actions/workflows/ci.yaml/dispatches" -f ref="$branch"
177+
echo "Dispatched CI for $branch."

.github/skills/update-deps/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ The Copilot CLI is started with `--add-dir .` so this project skill is loaded as
6363
- Reuse the workflow's own open draft PR for the branch. Refuse a non-draft PR, a PR by another author, a different base, multiple open PRs, or any non-bot commit on the reserved branch.
6464
- A clean diff is a successful no-op: do not push, create, close, or edit a PR.
6565
- Never mark a PR ready, merge it, close superseded PRs, or request review. `CODEOWNERS` routes changes to `@github/blackbird-reviewers`.
66+
- After creating or updating a draft PR, explicitly dispatch `ci.yaml` on the reserved branch. This is nonblocking and does not depend on recursive workflow events.
6667
- Repair is bounded to three agent passes. Missing output, allowlist violations, failed final validation, and unexpected branch/PR state are explicit failures.
6768

6869
## Authentication

.github/workflows/update-dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
matrix:
128128
ecosystem: [cargo, npm, github-actions]
129129
permissions:
130-
actions: read
130+
actions: write
131131
contents: write
132132
pull-requests: write
133133
env:

0 commit comments

Comments
 (0)