Exclude some Branches from running CI (#2344)
# Objective #2230 allowed the CI to run on every Branch of this Repo. But some Branches should not actually run the CI, which wastes the available capacity of CI runners. ### staging-squash-merge.tmp This Branch is used by Bors when squashing a PR. CI shouldn't need to run here, as the actual verification happens in the staging branch   ### dependabot/** Dependabot creates its branches in this Repo, which causes the CI to run twice on the same commit  ## Solution Exclude those branches from running CI.
This commit is contained in:
parent
00d8d5d5a0
commit
39271f24d2
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -3,6 +3,9 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- 'dependabot/**'
|
||||||
|
- staging-squash-merge.tmp
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
3
.github/workflows/dependencies.yml
vendored
3
.github/workflows/dependencies.yml
vendored
@ -9,6 +9,9 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- '**/Cargo.toml'
|
- '**/Cargo.toml'
|
||||||
- 'deny.toml'
|
- 'deny.toml'
|
||||||
|
branches-ignore:
|
||||||
|
- 'dependabot/**'
|
||||||
|
- staging-squash-merge.tmp
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * 0"
|
- cron: "0 0 * * 0"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user