Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid cancelling scheduled CI when a new merge happens on master #4294

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

neilmayhew
Copy link
Contributor

Description

If a PR is merged to master before a nightly CI run has finished, the nightly will be cancelled because it's in the same concurrency group and we have cancel-in-progress set.

This PR puts scheduled workflows into a separate set of concurrency groups from those triggered by other events, so that they don't conflict with each other.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Thank you!

@neilmayhew neilmayhew enabled auto-merge April 24, 2024 19:26
@neilmayhew neilmayhew merged commit 3ce2386 into master Apr 24, 2024
15 checks passed
@neilmayhew neilmayhew deleted the neilmayhew/ci-concurrency-groups branch April 24, 2024 21:01
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.

2 participants