Skip to content

Commit da0b931

Browse files
authored
[ci skip] simplify skips
1 parent 91a0238 commit da0b931

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/build-linux.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,10 @@ on:
77
types: [opened, synchronize, reopened, closed]
88

99
jobs:
10-
fail_if_pull_request_is_draft:
11-
if: github.event.pull_request.draft == true
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Build test is not run for draft PRs
15-
run: exit 1
16-
17-
fail_if_ci_skip:
18-
if: ${{ contains(github.event.commits[0].message, 'ci skip') }}
19-
runs-on: ubuntu-latest
20-
steps:
21-
- name: Build test is not run for [ci skip]
22-
run: exit 1
23-
2410
build:
11+
if: |
12+
!(github.event_name == 'pull_request' && github.event.pull_request.draft == true) ||
13+
!(github.event_name == 'pull_request' && ${{ contains(github.event.commits[0].message, 'ci skip') }})
2514
strategy:
2615
fail-fast: false
2716
matrix:

0 commit comments

Comments
 (0)