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

let GH run just the last commit and cancel build in progress #1242

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

lukasj
Copy link
Contributor

@lukasj lukasj commented Mar 5, 2024

@scottmarlow consider adding this so there's only the last commit being checked by GH action build

@@ -26,6 +26,10 @@ permissions:
id-token: write
checks: write

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
Copy link
Contributor

Choose a reason for hiding this comment

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

nice, looking at https://docs.github.com/en/actions/using-jobs/using-concurrency now...

So this applies to lukasj:gh_cancel branch in this case such that if you push another commit, any previous still running test is stopped so that a new test is started. Very good idea!

@scottmarlow scottmarlow merged commit 304c2f0 into jakartaee:tckrefactor Mar 5, 2024
2 checks passed
@lukasj lukasj deleted the gh_cancel branch March 5, 2024 14:56
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