Skip to content

Commit 57d259d

Browse files
committed
ci: skip most CI checks if title contains citest skip [citest_skip]
When we submit a PR for a CI update or docs, we do not want to start CI checking for ansible-lint, qemu, etc. When we are doing CI updates to 30 or more roles, this fires off a lot of unnecessary tests, which sometimes causes the linux-system-roles org in github to be throttled. When submitting a PR that can skip ci, use "[citest_skip]" in the PR title. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
1 parent 00505fb commit 57d259d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/codespell.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ permissions:
88
jobs:
99
codespell:
1010
if: |
11-
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
12-
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
11+
!(github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]'))
1312
name: Check for spelling errors
1413
runs-on: ubuntu-latest
1514
steps:

.github/workflows/woke.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ on: # yamllint disable-line rule:truthy
66
jobs:
77
woke:
88
if: |
9-
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
10-
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
9+
!(github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]'))
1110
name: Detect non-inclusive language
1211
runs-on: ubuntu-latest
1312
steps:

0 commit comments

Comments
 (0)