Skip to content

Commit ac910e2

Browse files
committed
excluded draft PRs
1 parent 6b9eddb commit ac910e2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ on:
99
pull_request:
1010
# The branches below must be a subset of the branches above
1111
branches: [master]
12+
types: [opened, reopened, synchronize, ready_for_review]
1213

1314
jobs:
1415
# CI on Linux (Qt5)
1516
ci-linux-qt5:
1617
name: "Linux (amd64; qt5)"
1718
runs-on: ubuntu-latest
18-
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex')"
19+
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex') && github.event.pull_request.draft == false"
1920

2021
steps:
2122
- name: Install dependencies
@@ -55,7 +56,7 @@ jobs:
5556
ci-linux-qt6:
5657
name: "Linux (amd64; qt6)"
5758
runs-on: ubuntu-latest
58-
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex')"
59+
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex') && github.event.pull_request.draft == false"
5960

6061
steps:
6162
- name: Install dependencies
@@ -96,7 +97,7 @@ jobs:
9697
ci-linux-qt6-pch:
9798
name: "Linux (amd64; qt6; core)"
9899
runs-on: ubuntu-latest
99-
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex')"
100+
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex') && github.event.pull_request.draft == false"
100101

101102
steps:
102103
- name: Install dependencies
@@ -143,7 +144,7 @@ jobs:
143144
ci-macos-qt5:
144145
name: "macOS (x86_64; qt5)"
145146
runs-on: macos-13
146-
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex')"
147+
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex') && github.event.pull_request.draft == false"
147148

148149
# @TODO Enable gpsd on macOS instance for CI testing
149150
# @BODY At the moment after installing gpsd (brew install gpsd) library can be found by cmake, but not headers! Apparently we should add some magic for environment variables or something else on macOS Catalina to make headers available for cmake/make
@@ -182,7 +183,7 @@ jobs:
182183
ci-macos-intel-qt6:
183184
name: "macOS (x86_64; qt6)"
184185
runs-on: macos-13
185-
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex')"
186+
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex') && github.event.pull_request.draft == false"
186187

187188
# @TODO Enable gpsd on macOS instance for CI testing
188189
# @BODY At the moment after installing gpsd (brew install gpsd) library can be found by cmake, but not headers! Apparently we should add some magic for environment variables or something else on macOS Catalina to make headers available for cmake/make
@@ -221,7 +222,7 @@ jobs:
221222
ci-macos-silicon-qt6:
222223
name: "macOS (arm64; qt6)"
223224
runs-on: macos-14
224-
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex')"
225+
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex') && github.event.pull_request.draft == false"
225226

226227
# @TODO Enable gpsd on macOS instance for CI testing
227228
# @BODY At the moment after installing gpsd (brew install gpsd) library can be found by cmake, but not headers! Apparently we should add some magic for environment variables or something else on macOS Catalina to make headers available for cmake/make
@@ -263,7 +264,7 @@ jobs:
263264
ci-freebsd-qt6:
264265
name: "FreeBSD (x86_64; qt5)"
265266
runs-on: ubuntu-latest
266-
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex')"
267+
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex') && github.event.pull_request.draft == false"
267268

268269
steps:
269270
- name: Checkout repository

0 commit comments

Comments
 (0)