Commit 86832a6
committed
ci(ghcr): mirror ghcr-feat-copilot workflow on main for dispatch resolution
auto-sync-upstream-copilot.yml dispatches ghcr-feat-copilot.yml after
a successful clean-merge + build:
gh workflow run ghcr-feat-copilot.yml --repo "${{ github.repository }}" \
--ref "${TARGET_BRANCH}"
GitHub Actions requires workflows triggered via workflow_dispatch to
exist on the default branch. The file only lived on feat/copilot, so
the dispatch step would fail with 'workflow not found'.
The push event from auto-sync (which uses GITHUB_TOKEN) does not
cascade to ghcr-feat-copilot's 'on: push' trigger — that's a
documented GitHub Actions safety to prevent recursion. The explicit
dispatch is the supported workaround.
This mirrors the precedent set in 8a2e2e0, which added
ghcr-remote-fix.yml to main for the same reason.
The main copy is byte-identical to the feat/copilot copy. Since the
'on: push: branches: [feat/copilot]' filter excludes main, the file
on main is purely a dispatch resolution stub — actual builds still
run against the feat/copilot ref.1 parent 41ffcac commit 86832a6
1 file changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
0 commit comments