diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 80bcd67..9fd99f2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -6,6 +6,10 @@ on: - '**' workflow_call: +concurrency: + group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }} + cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }} + jobs: check: runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0c0bdd0..14c58c3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,10 @@ on: tags: - 'v*' + +concurrency: + group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }} + cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }} jobs: check: uses: ./.github/workflows/check.yml diff --git a/.github/workflows/repository-maintenance.yml b/.github/workflows/repository-maintenance.yml index 8229b77..4bc7952 100644 --- a/.github/workflows/repository-maintenance.yml +++ b/.github/workflows/repository-maintenance.yml @@ -2,9 +2,13 @@ name: Repository Maintenance on: push: - branches: [ 'main' ] + branches: ['main'] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }} + cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }} + jobs: dependency-submission: name: Dependency Submission