Skip to content

Commit

Permalink
🔨 Concurrency (#57)
Browse files Browse the repository at this point in the history
## 📚 What?

* If there is concurrent pushes on same ref, branch or PR the currently
running actions will be cancelled.
* **All** workflows will be triggered on any branch except *main* or
*stable*. This was disabled on experimental branches due to multiple
pushes, but with the new controls it should be more smooth now.
  • Loading branch information
serkor1 authored Jan 14, 2025
1 parent 21045dc commit b6c8d5c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [development]
paths: ['.github/workflows/R-CMD-check.yaml']
branches-ignore:
- stable
- main
pull_request:
branches: [development]

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

name: R-CMD-check

permissions: read-all
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- stable
- main

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

name: Build Docs

jobs:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/macos-check-clang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [development]
paths: ['.github/workflows/macos-check-clang.yaml']
branches-ignore:
- stable
- main
pull_request:
branches: [development]

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

name: macOS-clang

permissions: read-all
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [development]
paths: ['.github/workflows/test-coverage.yaml']
branches-ignore:
- stable
- main
pull_request:
branches: [development]

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

name: test-coverage.yaml

permissions: read-all
Expand Down

0 comments on commit b6c8d5c

Please sign in to comment.