Skip to content
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

CI: Cancel in-progress runs on update for PR #2170

Closed
Closed
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
8 changes: 8 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ on:
# Check every Saturday at 18:36
- cron: "36 18 * * 6"

# Cancel previous workflow runs for pull requests.
# The concurrency group is workflow name and the branch name for pull requests,
# but it is the commit hash for any other events, so the group is unique and no
# runs are canceled.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
analyze:
name: ${{ matrix.language }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/osgeo4w.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ on:
- push
- pull_request

# Cancel previous workflow runs for pull requests.
# The concurrency group is workflow name and the branch name for pull requests,
# but it is the commit hash for any other events, so the group is unique and no
# runs are canceled.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
build:
name: ${{ matrix.os }} build and tests
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ on:
- push
- pull_request

# Cancel previous workflow runs for pull requests.
# The concurrency group is workflow name and the branch name for pull requests,
# but it is the commit hash for any other events, so the group is unique and no
# runs are canceled.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
build-and-test:
name: ${{ matrix.os }} tests
Expand Down