Skip to content

Commit 2d8a803

Browse files
Add concurrency marker to transformers workflow (#1824)
SUMMARY: Currently if you open a pr and mark it as ready the transformers check workflow will run. If you then push more commits to the pr, it will re-run the workflow but won't cancel the existing workflow run. Since we only care about the results of the most recent push to the pr branch, this change will make it so that we cancel pre-existing runs that have the same branch. Ref: https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency#example-using-concurrency-and-the-default-behavior Note: only adding this to the transformers workflow because it takes the longest (~30 mins) and uses custom runners. Signed-off-by: Fynn Schmitt-Ulms <[email protected]> Co-authored-by: Brian Dellabetta <[email protected]>
1 parent 8139b1d commit 2d8a803

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/test-check-transformers.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ env:
1616
CADENCE: "commit"
1717
HF_TOKEN: ${{ secrets.HF_TOKEN_READ }}
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
detect-changes:
2125
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)