diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 15f6394..76bdc10 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -2,10 +2,13 @@ name: Python on: push: - branches: - - main pull_request: +# Superseded runs on the same ref are cancelled (e.g. rapid amend-pushes) +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: detect-packages: runs-on: ubuntu-latest diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml index 154d5ad..e56ddd9 100644 --- a/.github/workflows/typescript.yml +++ b/.github/workflows/typescript.yml @@ -2,10 +2,13 @@ name: TypeScript on: push: - branches: - - main pull_request: +# Superseded runs on the same ref are cancelled (e.g. rapid amend-pushes) +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: detect-packages: runs-on: ubuntu-latest