Skip to content

ci: add workflow_dispatch so a dropped run can be re-triggered - #228

Merged
ZacxDev merged 1 commit into
mainfrom
ci/workflow-dispatch
Aug 6, 2026
Merged

ZacxDev merged 1 commit into
mainfrom
ci/workflow-dispatch

Conversation

@ZacxDev

@ZacxDev ZacxDev commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What

Adds workflow_dispatch: to ci.yml. No job, permission or step changes — 15 added lines, 14 of them comment explaining why it exists.

Why

On 2026-08-06 a GitHub Actions incident (status page: "Webhook triggers remain throttled during recovery, so many push and pull request events aren't yet triggering new workflow runs") stopped ci.yml runs from being created at all. For ~3.5 hours the newest ci.yml run repo-wide did not advance, across every branch.

Events were still arriving — GitHub-managed workflows (CodeQL) fired and completed on the same commits. Only user workflow runs went missing, which made it look like a problem with this repo's config rather than an outage.

#219 was complete, locally green, and unmergeable, with no recovery path. Every remedy depends on the trigger that was broken:

attempt event result
gh run rerun — needs an existing run for the head sha; none was created
empty commit synchronize no run
close + reopen reopened no run
workflow_dispatch — not declared

workflow_dispatch is the only trigger that does not ride a webhook.

The catch, and why this can't wait for the next outage

It cannot be applied retroactively — a dispatchable workflow must already exist on the default branch. Adding it during an incident does nothing, because landing it on main needs the same broken CI. It only ever helps if it lands beforehand.

That also means it will look permanently unused. The comment in the file says so explicitly, so nobody prunes it as dead config.

Verification

actionlint clean on the changed file and on the unmodified origin/main version, checked against a positive control — actionlint reports 16 findings on a deliberately-bad runner label, so its silence here is meaningful rather than a tool that failed to run.

Follow-up to #206 / #219.

🤖 Generated with Claude Code

On 2026-08-06 a GitHub Actions incident throttled webhook triggers. Push and
pull_request events stopped creating workflow runs entirely — for ~3.5 hours
no ci.yml run was created anywhere in the repo. Events were still arriving:
GitHub-managed workflows (CodeQL) fired and completed on the same commits,
so only user workflow runs went missing.

PR #219 sat unmergeable with no recovery path. Every remedy depends on the
trigger that was broken:

  - `gh run rerun` needs an existing run for the head sha; none was created
  - an empty commit fires `synchronize` — throttled
  - close + reopen fires `reopened` — throttled
  - `workflow_dispatch` — not declared

workflow_dispatch is the only trigger that does not ride a webhook. It cannot
be applied retroactively, because a dispatchable workflow must already exist
on the default branch — so it only helps if it lands before the next
incident, which is the whole argument for adding it now.

No job, permission or step changes: the diff is 15 added lines, 14 of them
comment. actionlint clean, verified against a positive control (it reports 16
findings on a deliberately-bad runner label, so its silence here is
meaningful).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@ZacxDev
ZacxDev merged commit a95c202 into main Aug 6, 2026
12 checks passed
ZacxDev added a commit that referenced this pull request Aug 7, 2026
…-push run (#229)

The 2026-08-06 Actions incident stopped push events from creating workflow
runs. #228 added workflow_dispatch to ci.yml for the same reason; release.yml
was left with no recovery at all — its only option is deleting and re-pushing
a tag users already install from.

The dispatch path cannot simply reuse the default checkout: actions/checkout
resolves to the default branch on a dispatch, while goreleaser derives the
version, changelog and artifact names from the git tag at HEAD. So the trigger
takes a `tag` input and checks it out explicitly, and a guard asserts HEAD is
exactly that tag before goreleaser runs.

The tag-push path is untouched — the diff is 63 insertions and 0 deletions.
`ref: ${{ github.event.inputs.tag }}` renders empty on a push, which
actions/checkout treats identically to omitting the key, and the guard step is
gated on github.event_name == 'workflow_dispatch'.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant