Closed keevan closed 2 years ago
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.
Which means using this setting:
concurrency: group: ${{ github.head_ref }} cancel-in-progress: true
Any new pushes to a PR / branch will cancel the previous workflow and let the new one run. Probably at a faster rate since it doesn't have to wait for the previous to finish (if there was a limit, and it's probably more eco-friendly anyways)
+1
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
Which means using this setting:
Any new pushes to a PR / branch will cancel the previous workflow and let the new one run. Probably at a faster rate since it doesn't have to wait for the previous to finish (if there was a limit, and it's probably more eco-friendly anyways)