Skip to content

👷 ci: key main's concurrency group on push events only - #78

Merged
nstarman merged 2 commits into
GalacticDynamics:mainfrom
nstarman:ci/no-cancel-on-main-followup
Oct 10, 2026
Merged

nstarman merged 2 commits into
GalacticDynamics:mainfrom
nstarman:ci/no-cancel-on-main-followup

Conversation

@nstarman

Copy link
Copy Markdown
Contributor

Follow-up to #76, based on review feedback on the matching PRs in other GalacticDynamics repos.

#76 added -${{ github.ref == 'refs/heads/main' && github.sha || '' }} to the concurrency group. That had two side effects:

  • every non-main group name gained a trailing -, so the first PR push after the merge didn't cancel runs started under the old name;
  • manual runs (and scheduled runs, where configured) on main also became uncancellable.

The group is now …-${{ github.event_name == 'push' && github.sha || github.ref }}. Push triggers only fire on main, so each merge still gets its own run, and every other event keeps the exact group name it had before #76. The value is also written as an explicit >- folded scalar, so the wrapped line can't be misread.

Files: .github/workflows/cd.yml, .github/workflows/ci.yml

🤖 Generated with Claude Code

Append the SHA only for push events (which only fire on main), so PRs,
releases and manual runs keep their exact previous group names with no
trailing '-'. Use an explicit folded scalar (>-) so the wrapped
expression reads unambiguously as one string.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@6063c23). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             main       #78   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         3           
  Lines           ?        75           
  Branches        ?         0           
========================================
  Hits            ?        75           
  Misses          ?         0           
  Partials        ?         0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Not every workflow runs on releases or manual triggers; say "all other
events" so the comment stays accurate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nstarman nstarman added this to the v0.3.0 milestone Oct 10, 2026
@nstarman
nstarman merged commit 6638562 into GalacticDynamics:main Oct 10, 2026
16 checks passed
@nstarman
nstarman deleted the ci/no-cancel-on-main-followup branch October 10, 2026 22:11
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