Cancel old mypy_primer builds (#8873)

This commit is contained in:
Nikita Sobolev
2022-10-10 11:28:17 +03:00
committed by GitHub
parent 1d7ace353a
commit fe3a34503c
2 changed files with 8 additions and 3 deletions

View File

@@ -9,13 +9,17 @@ on:
- '.github/workflows/mypy_primer.yml'
- '.github/workflows/mypy_primer_comment.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
mypy_primer:
name: Run
if: github.actor != 'pre-commit-ci[bot]'
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
shard-index: [0, 1, 2, 3]

View File

@@ -14,6 +14,7 @@ permissions:
jobs:
comment:
name: Comment PR from mypy_primer
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Download diffs