Skip to content

Commit 4f2a80b

Browse files
committed
Update readme
1 parent 1857f9b commit 4f2a80b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ on:
3333
permissions:
3434
contents: read
3535

36+
# Cancel an in-progress preflight when a new push lands on the same PR.
37+
concurrency:
38+
group: api-surface-${{ github.event.pull_request.number }}
39+
cancel-in-progress: true
40+
3641
jobs:
3742
check:
3843
runs-on: ubuntu-latest
@@ -66,6 +71,12 @@ permissions:
6671
contents: read
6772
pull-requests: write
6873
74+
# Cancel an in-progress comment run when a re-run / repeat workflow_run fires
75+
# for the same head SHA.
76+
concurrency:
77+
group: api-surface-comment-${{ github.event.workflow_run.head_sha }}
78+
cancel-in-progress: true
79+
6980
jobs:
7081
comment:
7182
if: github.event.workflow_run.event == 'pull_request'

0 commit comments

Comments
 (0)