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

ci: use concurrency in GitHub workflows #775

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

StephenGemin
Copy link
Contributor

@StephenGemin StephenGemin commented Jan 10, 2024

Reference: https://docs.github.com/en/actions/using-jobs/using-concurrency

Reason for change:
I've used this in other projects. It conserves resources, even though GitHub isn't charging this project for minutes used ... (I hope) 🙂

TL;DR
With this change, each push to a PR branch cancels in-progress workflows, for that particular branch. Only the workflow for the latest set of changes runs to completion.

* python-app.yml
* codeql.yml
@doronz88 doronz88 merged commit 2b64e6c into doronz88:master Jan 10, 2024
17 checks passed
@doronz88
Copy link
Owner

Nice! Thanks! :)

@StephenGemin StephenGemin deleted the ci/workflow-concurrency branch April 25, 2024 03:38
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