Skip to content

Commit bd04122

Browse files
committed
Remove redundant commit message checks for skipping CI pipeline
1 parent 26d9daa commit bd04122

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ jobs:
2121
################
2222

2323
pr:
24-
if: ${{ github.event_name == 'pull_request'
25-
&& !contains(github.event.head_commit.message, '[skip ci]') }}
24+
if: ${{ github.event_name == 'pull_request' }}
2625
needs:
2726
- clippy
2827
- example
@@ -43,9 +42,6 @@ jobs:
4342
##########################
4443

4544
clippy:
46-
if: ${{ github.ref == 'refs/heads/master'
47-
|| startsWith(github.ref, 'refs/tags/juniper')
48-
|| !contains(github.event.head_commit.message, '[skip ci]') }}
4945
runs-on: ubuntu-latest
5046
steps:
5147
- uses: actions/checkout@v3
@@ -58,9 +54,6 @@ jobs:
5854
- run: make cargo.lint
5955

6056
rustfmt:
61-
if: ${{ github.ref == 'refs/heads/master'
62-
|| startsWith(github.ref, 'refs/tags/juniper')
63-
|| !contains(github.event.head_commit.message, '[skip ci]') }}
6457
runs-on: ubuntu-latest
6558
steps:
6659
- uses: actions/checkout@v3
@@ -80,9 +73,6 @@ jobs:
8073
###########
8174

8275
example:
83-
if: ${{ github.ref == 'refs/heads/master'
84-
|| startsWith(github.ref, 'refs/tags/juniper')
85-
|| !contains(github.event.head_commit.message, '[skip ci]') }}
8676
strategy:
8777
fail-fast: false
8878
matrix:
@@ -111,9 +101,6 @@ jobs:
111101
- run: cargo check -p example_${{ matrix.example }}
112102

113103
feature:
114-
if: ${{ github.ref == 'refs/heads/master'
115-
|| startsWith(github.ref, 'refs/tags/juniper')
116-
|| !contains(github.event.head_commit.message, '[skip ci]') }}
117104
strategy:
118105
fail-fast: false
119106
matrix:
@@ -174,9 +161,6 @@ jobs:
174161
- run: cargo package -p ${{ steps.crate.outputs.NAME }}
175162

176163
test:
177-
if: ${{ github.ref == 'refs/heads/master'
178-
|| startsWith(github.ref, 'refs/tags/juniper')
179-
|| !contains(github.event.head_commit.message, '[skip ci]') }}
180164
strategy:
181165
fail-fast: false
182166
matrix:
@@ -230,9 +214,6 @@ jobs:
230214
- run: make test.cargo crate=${{ matrix.crate }}
231215

232216
wasm:
233-
if: ${{ github.ref == 'refs/heads/master'
234-
|| startsWith(github.ref, 'refs/tags/juniper')
235-
|| !contains(github.event.head_commit.message, '[skip ci]') }}
236217
strategy:
237218
fail-fast: false
238219
matrix:
@@ -264,9 +245,7 @@ jobs:
264245

265246
release-check:
266247
name: Check release automation
267-
if: ${{ !startsWith(github.ref, 'refs/tags/juniper')
268-
&& (github.ref == 'refs/heads/master'
269-
|| !contains(github.event.head_commit.message, '[skip ci]')) }}
248+
if: ${{ !startsWith(github.ref, 'refs/tags/juniper') }}
270249
strategy:
271250
fail-fast: false
272251
matrix:

0 commit comments

Comments
 (0)