ci: add workflow_dispatch trigger#2
Open
alvarogonjim wants to merge 2 commits into
Open
Conversation
Lets us re-run CI on any branch via 'gh workflow run CI --ref <ref>' without pushing a marker commit. Useful for re-running on the current HEAD after a flaky failure or after a runtime change (Go toolchain update, Actions runner image change, etc.). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Original push d78b816 happened during the GitHub Actions auth-failure outage; its pull_request webhook was lost. Empty commit to fire CI on the current PR head. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
One-line addition to
.github/workflows/ci.yml— declaresworkflow_dispatch:alongside the existingpush:andpull_request:triggers so we can re-run CI on any branch viagh workflow run CI --ref <ref>without having to push a marker commit.Motivation
Earlier today the public-alpha cleanup landed on
main(#1) while the repo was still private and Actions minutes were exhausted, so no CI run was attached to the merge commit. We had to push an empty commit to coax CI into running. Withworkflow_dispatch:the equivalent fix is a one-liner that adds no commit noise:No behaviour change to existing
push/pull_requestruns.Test plan
gh workflow run CI --ref ci/workflow-dispatchshould work once this merges (currently the trigger isn't onmainyet, so the dispatch only validates the syntax via the PR itself).pushandpull_requestCI runs continue to fire — this PR's ownpull_requestrun is the test.🤖 Generated with Claude Code