diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index 3feb92a8e289..33f678eb1921 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -6,6 +6,13 @@ on: pull_request: branches: [master, develop*, released] +# Cancels all previous workflow runs for pull requests that have not completed. +concurrency: + # The concurrency group contains the workflow name and the branch name for + # pull requests or the commit hash for any other events. + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + jobs: merge_conflict_check: runs-on: ubuntu-20.04 diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 447bfa8012a7..b6b4f682a84f 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -1,4 +1,4 @@ -name: Build +name: Compile on: push: @@ -6,6 +6,13 @@ on: pull_request: branches: [master, develop*, released] +# Cancels all previous workflow runs for pull requests that have not completed. +concurrency: + # The concurrency group contains the workflow name and the branch name for + # pull requests or the commit hash for any other events. + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-20.04 diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index a32ef5ba19c2..21a205e3453a 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -6,6 +6,13 @@ on: pull_request: branches: [master, develop*, released] +# Cancels all previous workflow runs for pull requests that have not completed. +concurrency: + # The concurrency group contains the workflow name and the branch name for + # pull requests or the commit hash for any other events. + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + jobs: prettier: runs-on: ubuntu-20.04 diff --git a/.github/workflows/netlify.yml b/.github/workflows/netlify.yml index 5c3a64a90b0e..0b00d7b3be51 100644 --- a/.github/workflows/netlify.yml +++ b/.github/workflows/netlify.yml @@ -6,6 +6,13 @@ on: pull_request: branches: [master, develop*, released] +# Cancels all previous workflow runs for pull requests that have not completed. +concurrency: + # The concurrency group contains the workflow name and the branch name for + # pull requests or the commit hash for any other events. + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + jobs: netlify: runs-on: ubuntu-20.04 diff --git a/.github/workflows/spell-checking.yml b/.github/workflows/spell-checking.yml index 39f145d3a979..de83baf8ff9c 100644 --- a/.github/workflows/spell-checking.yml +++ b/.github/workflows/spell-checking.yml @@ -4,6 +4,13 @@ on: pull_request: branches: [develop*] +# Cancels all previous workflow runs for pull requests that have not completed. +concurrency: + # The concurrency group contains the workflow name and the branch name for + # pull requests or the commit hash for any other events. + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + jobs: check-spell: runs-on: ubuntu-20.04