Trigger CI after yolo promotion

What:
- let the yolo promote job dispatch the CI workflow after pushing main
- grant the promote job actions:write for workflow_dispatch

Why:
- GitHub suppresses push-triggered workflows created by GITHUB_TOKEN, so yolo-promoted commits otherwise lack a CI run on the final main SHA

Tests:
- scripts/check-flake-lock-owners.sh
- node scripts/select-openclaw-release.test.mjs
- bash -n scripts/update-pins.sh
- ruby -e 'require "yaml"; ARGV.each { |f| YAML.load_file(f) }' .github/workflows/*.yml
- GITHUB_ACTIONS=true scripts/update-pins.sh select
- nix flake show --accept-flake-config

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
joshp123 2026-05-07 11:04:00 +02:00
parent a2ea92cce2
commit 44ae6995de

View File

@ -167,6 +167,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30 timeout-minutes: 30
permissions: permissions:
actions: write
contents: write contents: write
steps: steps:
- name: Checkout - name: Checkout
@ -252,3 +253,5 @@ jobs:
git fetch origin main git fetch origin main
git rebase origin/main git rebase origin/main
git push origin HEAD:main git push origin HEAD:main
gh workflow run ci.yml --ref main