Skip to content

Commit 366b7e1

Browse files
authored
Cancel primer for old commits on PRs (#13846)
1 parent dbe9a88 commit 366b7e1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/mypy_primer.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
- 'mypy/test/**'
1616
- 'test-data/**'
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
mypy_primer:
2024
name: Run mypy_primer

.github/workflows/mypy_primer_comment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
comment:
1616
name: Comment PR from mypy_primer
1717
runs-on: ubuntu-latest
18+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1819
steps:
1920
- name: Download diffs
2021
uses: actions/github-script@v6

0 commit comments

Comments
 (0)