Skip to content

Conversation

@p-r-a-v-i-n
Copy link
Contributor

With concurrency, if a previous run is still going, it will be stopped and only the latest run will finish.

This is especially helpful for immediate pushes. For example, if I push code and then immediately push a fix 10 seconds later, GitHub will stop the first (outdated) run and only spend resources on the latest one.

Copy link
Member

@browniebroke browniebroke left a comment

Choose a reason for hiding this comment

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

Nice! I usually use group: ${{ github.head_ref || github.run_id }} but I checked the docs and what you're proposing seems indeed better for our setup since we have multiple workflows 👍🏻

@p-r-a-v-i-n
Copy link
Contributor Author

Thanks Bruno !

@browniebroke browniebroke merged commit 48fe075 into encode:main Dec 23, 2025
7 checks passed
@p-r-a-v-i-n p-r-a-v-i-n deleted the add-concurrency branch December 23, 2025 11:34
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