ci: add path-ignore and concurrency cancel before re-enabling CI#19
Merged
Conversation
The CI workflow was disabled_manually earlier when runs were flaky and Actions minutes were tight. Re-enabling it as-is would fire the full workspace build + clippy + test on every docs-only push and stack billable runs on every force-push during a busy PR. Three small triggers-block changes fix that before we flip the workflow back on: 1. paths-ignore on both push and pull_request: docs/, **.md, LICENSE, assets/, .github/ISSUE_TEMPLATE/, .gitignore. A docs-only PR no longer pays for a full code CI run. Code changes still trigger normally. 2. concurrency group keyed on workflow + ref with cancel-in-progress true. A force-push to a PR branch supersedes the prior run instead of stacking it. On a PR with 5 force-pushes, you pay for one run, not five. 3. workflow_dispatch added so the workflow can be re-triggered manually from the Actions tab without needing a no-op commit. No changes to job content, so fmt/clippy/test coverage is unchanged once this lands and the workflow is re-enabled via `gh workflow enable CI`. Co-Authored-By: Claude Opus 4.7 (1M context) <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
Prepares `ci.yml` for re-enable without the cost profile that made you disable it in the first place.
No job-content changes. After merge, run `gh workflow enable CI` once and the workflow is live.
Test plan
🤖 Generated with Claude Code