diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 29ef1e8b8..cc2420730 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -2,6 +2,9 @@ name: Docker on: - push - pull_request +concurrency: + group: ${{ github.workflow }}-{{ github.head_ref || github.ref }} + cancel-in-progress: true jobs: test: name: Docker diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a633a6614..0042817d8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,6 +2,9 @@ name: Lint on: - push - pull_request +concurrency: + group: ${{ github.workflow }}-{{ github.head_ref || github.ref }} + cancel-in-progress: true env: os: ubuntu-20.04 ruby: 2.7 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2d272c718..1c82d20ae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,6 +2,9 @@ name: Tests on: - push - pull_request +concurrency: + group: ${{ github.workflow }}-{{ github.head_ref || github.ref }} + cancel-in-progress: true jobs: test: name: Ubuntu ${{ matrix.ubuntu }}, Ruby ${{ matrix.ruby }}