Commit 24a67f2
authored
Use github ref for build concurrency (#1515)
The current "concurrency" string for pull request builds uses the `sha`
of the commit rather than the ref of the branch. This means the
concurrency group changes with every commit, so commits to the same
branch in quick succession do not cancel running jobs as they should.
For example, I made changes to the same demo and pushed to the branch 3
times in the span of a few minutes, and all the builds ran to
completion.
<img width="1296" height="235" alt="Screenshot 2025-08-11 at 3 43 39 PM"
src="https://github.com/user-attachments/assets/68b8de94-d107-41ff-835e-727748c9e709"
/>
The desired behaviour is that the most recent push should cancel any
running build for that branch and start again using the latest changes.
This PR uses the PR ref for the concurrency group, which will have the
desired effect of new changes pushed to the branch cancelling any
in-progress builds for that branch and trigger a fresh build.1 parent 69c0704 commit 24a67f2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments