Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe3a345

Browse files
authored
Cancel old mypy_primer builds (#8873)
1 parent 1d7ace3 commit fe3a345

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/mypy_primer.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ on:
99
- '.github/workflows/mypy_primer.yml'
1010
- '.github/workflows/mypy_primer_comment.yml'
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
15+
16+
permissions:
17+
contents: read
18+
1219
jobs:
1320
mypy_primer:
1421
name: Run
15-
if: github.actor != 'pre-commit-ci[bot]'
1622
runs-on: ubuntu-latest
17-
permissions:
18-
contents: read
1923
strategy:
2024
matrix:
2125
shard-index: [0, 1, 2, 3]

.github/workflows/mypy_primer_comment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permissions:
1414
jobs:
1515
comment:
1616
name: Comment PR from mypy_primer
17+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1718
runs-on: ubuntu-latest
1819
steps:
1920
- name: Download diffs

0 commit comments

Comments
 (0)