Skip to content

Commit cd529a6

Browse files
committed
Prevent actions duplication on noop merge commits
1 parent 1cf6ab6 commit cd529a6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ env:
1212
RUSTFLAGS: -Dwarnings
1313

1414
jobs:
15+
pre_ci:
16+
uses: dtolnay/.github/.github/workflows/pre_ci.yml@master
17+
1518
test:
1619
name: Rust ${{matrix.rust}}
20+
needs: pre_ci
21+
if: needs.pre_ci.outputs.continue
1722
runs-on: ubuntu-latest
1823
strategy:
1924
fail-fast: false
@@ -29,6 +34,8 @@ jobs:
2934

3035
doc:
3136
name: Documentation
37+
needs: pre_ci
38+
if: needs.pre_ci.outputs.continue
3239
runs-on: ubuntu-latest
3340
env:
3441
RUSTDOCFLAGS: -Dwarnings

0 commit comments

Comments
 (0)