diff options
author | 2021-09-04 19:09:14 +0100 | |
---|---|---|
committer | 2021-09-04 19:09:14 +0100 | |
commit | 0a83cd7e2fabd7108215ff36c72e152d2580c100 (patch) | |
tree | b59ac4d37cbc11009faa6865dce85a3fc6aa0b41 | |
parent | Merge pull request #1808 from python-discord/jb3/update-manifest-path (diff) | |
parent | Merge branch 'main' into Add-concurrency-to-all-workflows (diff) |
Merge pull request #1794 from python-discord/Add-concurrency-to-all-workflows
Add concurrency rules to all GitHub workflows
-rw-r--r-- | .github/workflows/build.yml | 4 | ||||
-rw-r--r-- | .github/workflows/deploy.yml | 4 | ||||
-rw-r--r-- | .github/workflows/lint-test.yml | 3 | ||||
-rw-r--r-- | .github/workflows/sentry_release.yml | 4 | ||||
-rw-r--r-- | .github/workflows/status_embed.yaml | 4 |
5 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 84a671917..f8f2c8888 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,10 @@ on: types: - completed +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f8a8292a4..88abe6fb6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,10 @@ on: types: - completed +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: environment: production diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index ac7e47f0e..619544e1a 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -6,6 +6,9 @@ on: - main pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: lint-test: diff --git a/.github/workflows/sentry_release.yml b/.github/workflows/sentry_release.yml index f6a1e1f0e..48f5e50f4 100644 --- a/.github/workflows/sentry_release.yml +++ b/.github/workflows/sentry_release.yml @@ -5,6 +5,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: create_sentry_release: runs-on: ubuntu-latest diff --git a/.github/workflows/status_embed.yaml b/.github/workflows/status_embed.yaml index b6a71b887..4178c366d 100644 --- a/.github/workflows/status_embed.yaml +++ b/.github/workflows/status_embed.yaml @@ -9,6 +9,10 @@ on: types: - completed +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: status_embed: # We need to send a status embed whenever the workflow |