Skip to content

ci: add cancel-workflow-action functionality to all github workflows #6755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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