Skip to content

Commit

Permalink
ci: add cancel-workflow-action functionality to all github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-prindle committed Nov 1, 2021
1 parent 08852b0 commit 116da5d
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:

permissions: read-all

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

permissions: read-all

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
cancel-in-progress: true

jobs:
check:
name: Check if release commit
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/integration-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on: [push, pull_request]

permissions: read-all

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
cancel-in-progress: true

jobs:

build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/integration-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on: [push, pull_request]

permissions: read-all

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
cancel-in-progress: true

jobs:

build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/integration-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on: [push, pull_request]

permissions: read-all

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
cancel-in-progress: true

jobs:

build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/linters-checks-and-unit-tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on: [push, pull_request]

permissions: read-all

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
cancel-in-progress: true

jobs:

build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/performance-comparison-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ permissions:
pull-requests: write
issues: write

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
cancel-in-progress: true

jobs:
build:
if: ${{ github.event.label.name == 'help:run-comparisonstats' }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/performance-comparison.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ permissions:
contents: read
pull-requests: write

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
cancel-in-progress: true

jobs:
build:
if: ${{ startsWith(github.event.comment.body, '/run-comparisonstats') }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unit-tests-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on: [push, pull_request]

permissions: read-all

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
cancel-in-progress: true
jobs:

build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/verify-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Verify examples
# Triggers the workflow on push or pull request events
on: [pull_request]

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
cancel-in-progress: true

jobs:
dependabot:
name: Verify changes to examples
Expand Down

0 comments on commit 116da5d

Please sign in to comment.