Skip to content

Commit ef5b539

Browse files
committed
ci : do not run on drafts
1 parent b4c74b7 commit ef5b539

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ env:
1818

1919
jobs:
2020
ubuntu-latest-make:
21+
if: github.event.pull_request.draft == false
22+
2123
runs-on: ubuntu-latest
2224

2325
steps:
@@ -37,6 +39,8 @@ jobs:
3739
make
3840
3941
ubuntu-latest-cmake:
42+
if: github.event.pull_request.draft == false
43+
4044
runs-on: ubuntu-latest
4145

4246
steps:
@@ -65,6 +69,8 @@ jobs:
6569
ctest --verbose
6670
6771
ubuntu-latest-cmake-sanitizer:
72+
if: github.event.pull_request.draft == false
73+
6874
runs-on: ubuntu-latest
6975

7076
continue-on-error: true
@@ -101,6 +107,8 @@ jobs:
101107
ctest --verbose
102108
103109
macOS-latest-make:
110+
if: github.event.pull_request.draft == false
111+
104112
runs-on: macos-latest
105113

106114
steps:
@@ -119,6 +127,8 @@ jobs:
119127
make
120128
121129
macOS-latest-cmake:
130+
if: github.event.pull_request.draft == false
131+
122132
runs-on: macOS-latest
123133

124134
steps:
@@ -146,6 +156,8 @@ jobs:
146156
ctest --verbose
147157
148158
windows-latest-cmake:
159+
if: github.event.pull_request.draft == false
160+
149161
runs-on: windows-latest
150162

151163
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)