Skip to content

Commit

Permalink
Merge pull request #7601 from jwodder/concurrency
Browse files Browse the repository at this point in the history
Cancel lengthy running workflows if a new commit is pushed
  • Loading branch information
yarikoptic committed May 20, 2024
2 parents fda2048 + 8d2fe0f commit ffe92b7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Benchmarks

on: [push, pull_request]

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

jobs:
vs-master:

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_crippled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: CrippledFS

on: [pull_request]

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

jobs:
test:

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Extensions

on: [push, pull_request]

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

jobs:
test:

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

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

jobs:
test:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/pr-7601.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### 🧪 Tests

- Cancel lengthy running workflows if a new commit is pushed. [PR #7601](https://github.com/datalad/datalad/pull/7601) (by [@jwodder](https://github.com/jwodder))

0 comments on commit ffe92b7

Please sign in to comment.