Skip to content

Commit 857308d

Browse files
authored
ci : trigger CI for drafts, but not most PR actions (#1125)
1 parent c50b628 commit 857308d

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ on:
1212
- master
1313
paths: ['.github/workflows/**', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.c', '**/*.cpp']
1414
pull_request:
15-
types: [opened, synchronize, edited, reopened, review_requested, ready_for_review]
15+
types: [opened, synchronize, reopened]
1616
paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.c', '**/*.cpp']
1717

1818
env:
1919
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
2020

2121
jobs:
2222
ubuntu-latest-make:
23-
if: github.event.pull_request.draft == false
24-
2523
runs-on: ubuntu-latest
2624

2725
steps:
@@ -41,8 +39,6 @@ jobs:
4139
make
4240
4341
ubuntu-latest-cmake:
44-
if: github.event.pull_request.draft == false
45-
4642
runs-on: ubuntu-latest
4743

4844
steps:
@@ -71,8 +67,6 @@ jobs:
7167
ctest --verbose
7268
7369
ubuntu-latest-cmake-sanitizer:
74-
if: github.event.pull_request.draft == false
75-
7670
runs-on: ubuntu-latest
7771

7872
continue-on-error: true
@@ -108,8 +102,6 @@ jobs:
108102
ctest --verbose
109103
110104
macOS-latest-make:
111-
if: github.event.pull_request.draft == false
112-
113105
runs-on: macos-latest
114106

115107
steps:
@@ -128,8 +120,6 @@ jobs:
128120
make
129121
130122
macOS-latest-cmake:
131-
if: github.event.pull_request.draft == false
132-
133123
runs-on: macOS-latest
134124

135125
steps:
@@ -157,8 +147,6 @@ jobs:
157147
ctest --verbose
158148
159149
windows-latest-cmake:
160-
if: github.event.pull_request.draft == false
161-
162150
runs-on: windows-latest
163151

164152
strategy:

0 commit comments

Comments
 (0)