Skip to content

GH Actions: auto-cancel previous jobs for same branch#192

Open
jrfnl wants to merge 1 commit intomasterfrom
feature/ghactions-fix-concurrency
Open

GH Actions: auto-cancel previous jobs for same branch#192
jrfnl wants to merge 1 commit intomasterfrom
feature/ghactions-fix-concurrency

Conversation

@jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Mar 25, 2026

When the same branch is pushed again, any still running builds for the same branch should be stopped in favour of starting the build for the newly pushed version of the branch.

The test workflow did not apply this best practice.

Fixed now.

Includes minor formatting improvement for the on key.

Refs:

When the same branch is pushed again, any still running builds for the same branch should be stopped in favour of starting the build for the newly pushed version of the branch.

The `test` workflow did not apply this best practice.

Fixed now.

Includes minor formatting improvement for the `on` key.

Refs:
* https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#concurrency
@jrfnl jrfnl added this to the 2.2 Next milestone Mar 25, 2026
@jrfnl jrfnl added the github_actions Pull requests that update GitHub Actions code label Mar 25, 2026
@jrfnl jrfnl force-pushed the feature/ghactions-fix-concurrency branch from ef10aee to 537c0e6 Compare March 25, 2026 12:35
@jrfnl
Copy link
Collaborator Author

jrfnl commented Mar 25, 2026

Sorry for the push noise. Pushed to the wrong branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant