Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Cancel redundant GHA workflows (#10451)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Jul 22, 2021
1 parent f1347bc commit 5e2df47
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
# we do the full build on tags.
tags: ["v*"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: ["develop", "release-*"]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions changelog.d/10451.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Cancel redundant GHA workflows when a new commit is pushed.

0 comments on commit 5e2df47

Please sign in to comment.