Skip to content

Commit 6e3e299

Browse files
committed
chore(cicd): exclude prs with title Automated version bump
1 parent cae0058 commit 6e3e299

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/pr.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717

1818
jobs:
1919
checks:
20+
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
2021
name: Rustfmt & Clippy
2122
runs-on: ubuntu-latest
2223
steps:
@@ -48,6 +49,7 @@ jobs:
4849
run: ./scripts/clippy
4950

5051
check_pr_size:
52+
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
5153
name: Check PR size doesn't break set limit
5254
runs-on: ubuntu-latest
5355
steps:
@@ -59,7 +61,7 @@ jobs:
5961
max_lines_changed: 200
6062

6163
geiger:
62-
if: ${{ github.repository_owner == 'maidsafe' }}
64+
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
6365
name: Cargo geiger
6466
runs-on: ubuntu-latest
6567
steps:
@@ -89,6 +91,7 @@ jobs:
8991
run: cargo geiger --all-features --all-targets --all-dependencies
9092

9193
coverage:
94+
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
9295
name: Code coverage check
9396
runs-on: ubuntu-latest
9497
steps:
@@ -128,24 +131,25 @@ jobs:
128131
parallel-finished: true
129132

130133
cargo-udeps:
134+
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
131135
name: Unused dependency check
132136
runs-on: ubuntu-latest
133137
steps:
134138
- uses: actions/checkout@v2
135139
# Install Rust and required components
136140
- uses: actions-rs/toolchain@v1
137141
with:
138-
profile: minimal
139142
toolchain: nightly
140143
override: true
141144

142-
# Install and run cargo udeps to find unused cargo dependencies
143-
- name: cargo-udeps unused dependency check
144-
run: |
145-
cargo install cargo-udeps --locked
146-
cargo +nightly udeps --all-targets
145+
- name: Run cargo-udeps
146+
uses: aig787/cargo-udeps-action@v1
147+
with:
148+
version: 'latest'
149+
args: '--all-targets'
147150

148151
cargo-deny:
152+
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
149153
runs-on: ubuntu-latest
150154
steps:
151155
- uses: actions/checkout@v2
@@ -157,6 +161,7 @@ jobs:
157161
- uses: EmbarkStudios/cargo-deny-action@v1
158162

159163
test:
164+
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
160165
name: Test
161166
runs-on: ${{ matrix.os }}
162167
strategy:
@@ -187,6 +192,7 @@ jobs:
187192

188193
# Test publish using --dry-run.
189194
test-publish:
195+
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
190196
name: Test Publish
191197
runs-on: ubuntu-latest
192198
steps:

.github/workflows/security_audit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
- cron: '0 0 * * *'
55
jobs:
66
audit:
7+
if: github.repository_owner == 'maidsafe'
78
runs-on: ubuntu-latest
89
steps:
910
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)