diff options
author | 2021-05-15 12:20:39 +0100 | |
---|---|---|
committer | 2021-05-15 12:34:47 +0100 | |
commit | 4683f9482a33103d8da611be7f5d4a2bb402e373 (patch) | |
tree | 88c9eae61afcdb861389dfc2a2bda9431129db3a | |
parent | Merge pull request #645 from python-discord/bookmark-react-for-copy (diff) |
Add concurrency behaviour to github actions
This grouping means any new actions on either a PR or against main, will cancel any running
actions. We do not care about these old actions, as they are out of date, so cancelling
them will mean the actions we do care about get done faster.
-rw-r--r-- | .github/workflows/build.yaml | 4 | ||||
-rw-r--r-- | .github/workflows/lint.yaml | 3 | ||||
-rw-r--r-- | .github/workflows/sentry_release.yaml | 4 | ||||
-rw-r--r-- | .github/workflows/status_embed.yaml | 4 |
4 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index baa046ce..dac711f8 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,6 +8,10 @@ on: types: - completed +concurrency: + group: ${{ 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/lint.yaml b/.github/workflows/lint.yaml index 7f157da3..3a9b6dbd 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -6,6 +6,9 @@ on: - main pull_request: +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true jobs: lint: diff --git a/.github/workflows/sentry_release.yaml b/.github/workflows/sentry_release.yaml index 3d15e01e..e7bc0429 100644 --- a/.github/workflows/sentry_release.yaml +++ b/.github/workflows/sentry_release.yaml @@ -5,6 +5,10 @@ on: branches: - main +concurrency: + group: ${{ 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 28caa8c2..23677488 100644 --- a/.github/workflows/status_embed.yaml +++ b/.github/workflows/status_embed.yaml @@ -8,6 +8,10 @@ on: types: - completed +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: status_embed: # We send the embed in the following situations: |