Skip to content

Commit 0f5ee9e

Browse files
committed
ci : do not run on drafts
1 parent 7da998d commit 0f5ee9e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
required: true
99
type: boolean
1010
push:
11+
branches:
12+
- master
1113
paths: ['.github/workflows/**', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.c', '**/*.cpp']
1214
pull_request:
1315
types: [opened, synchronize, edited, reopened, review_requested, ready_for_review]
@@ -18,6 +20,8 @@ env:
1820

1921
jobs:
2022
ubuntu-latest-make:
23+
if: github.event.pull_request.draft == false
24+
2125
runs-on: ubuntu-latest
2226

2327
steps:
@@ -37,6 +41,8 @@ jobs:
3741
make
3842
3943
ubuntu-latest-cmake:
44+
if: github.event.pull_request.draft == false
45+
4046
runs-on: ubuntu-latest
4147

4248
steps:
@@ -65,6 +71,8 @@ jobs:
6571
ctest --verbose
6672
6773
ubuntu-latest-cmake-sanitizer:
74+
if: github.event.pull_request.draft == false
75+
6876
runs-on: ubuntu-latest
6977

7078
continue-on-error: true
@@ -101,6 +109,8 @@ jobs:
101109
ctest --verbose
102110
103111
macOS-latest-make:
112+
if: github.event.pull_request.draft == false
113+
104114
runs-on: macos-latest
105115

106116
steps:
@@ -119,6 +129,8 @@ jobs:
119129
make
120130
121131
macOS-latest-cmake:
132+
if: github.event.pull_request.draft == false
133+
122134
runs-on: macOS-latest
123135

124136
steps:
@@ -146,6 +158,8 @@ jobs:
146158
ctest --verbose
147159
148160
windows-latest-cmake:
161+
if: github.event.pull_request.draft == false
162+
149163
runs-on: windows-latest
150164

151165
strategy:

.github/workflows/docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ on:
1818
jobs:
1919
push_to_registry:
2020
name: Push Docker image to Docker Hub
21+
if: github.event.pull_request.draft == false
22+
2123
runs-on: ubuntu-latest
2224
env:
2325
COMMIT_SHA: ${{ github.sha }}

0 commit comments

Comments
 (0)