From 56e7b269a094c77410bc2a95245dbc3836bbe0cc Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 21 Apr 2022 12:25:59 +0100 Subject: [PATCH] Cancel workflow runs which get superseded automatically --- .github/workflows/docker.yml | 3 +++ .github/workflows/lint.yml | 3 +++ .github/workflows/tests.yml | 3 +++ 3 files changed, 9 insertions(+) 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 }} -- 2.39.5