fix(ci): dispatch deployment mirror after pilot sync - #36
Conversation
Automated Matrix pilot fast-forwards use the GitHub Actions token, so the push to native-matrix-channel-pilot does not trigger the push-based deployment mirror workflow. Add a manual mirror dispatch trigger and dispatch it immediately after the pilot branch fast-forward. Validation: - bash scripts/test-auto-ff-matrix-pilot-sync-workflow.sh - bash scripts/test-sync-upstream-workflow.sh - bash scripts/test-pipeline-control-sync-workflow.sh - git diff --check [skip-regression-check]
5d1ddfd to
10dedc4
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5d1ddfdee1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| name: Mirror to deployment target | ||
|
|
||
| on: | ||
| workflow_dispatch: |
There was a problem hiding this comment.
Guard deployment mirror dispatch to pilot refs
Adding workflow_dispatch makes this workflow runnable on any branch selected for the manual/API dispatch; GitHub documents that manual runs choose a branch/ref and GITHUB_SHA comes from that dispatched ref. Because the job has no github.ref_name == 'native-matrix-channel-pilot' guard before it checks out and mirrors the tree with the deployment App credentials, a manual dispatch on main or a feature branch can create/update the deployment mirror PR from source that did not pass the existing pilot fast-forward gate. Please reject non-pilot refs before generating the mirror token or performing the mirror.
Useful? React with 👍 / 👎.
Automated Matrix pilot fast-forwards use the GitHub Actions token, so the push to native-matrix-channel-pilot does not trigger the push-based deployment mirror workflow. This restores the end-to-end handoff by adding a manual mirror dispatch trigger and dispatching it immediately after the pilot branch fast-forward.\n\nValidation:\n- bash scripts/test-auto-ff-matrix-pilot-sync-workflow.sh\n- bash scripts/test-sync-upstream-workflow.sh\n- bash scripts/test-pipeline-control-sync-workflow.sh\n- git diff --check