Skip to content

Commit e929300

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 a20ca98 commit e929300

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ permissions:
1818
contents: read
1919
jobs:
2020
ansible_lint:
21+
if: "!contains(github.event.pull_request.title, '[citest_skip]')"
2122
runs-on: ubuntu-latest
2223
steps:
2324
- name: Update pip, git

.github/workflows/ansible-managed-var-comment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions:
1515
contents: read
1616
jobs:
1717
ansible_managed_var_comment:
18+
if: "!contains(github.event.pull_request.title, '[citest_skip]')"
1819
runs-on: ubuntu-latest
1920
steps:
2021
- name: Update pip, git

.github/workflows/ansible-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ permissions:
1818
contents: read
1919
jobs:
2020
ansible_test:
21+
if: "!contains(github.event.pull_request.title, '[citest_skip]')"
2122
runs-on: ubuntu-latest
2223
steps:
2324
- name: Update pip, git

.github/workflows/codespell.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ permissions:
77
contents: read
88
jobs:
99
codespell:
10+
if: "!contains(github.event.pull_request.title, '[citest_skip]')"
1011
name: Check for spelling errors
1112
runs-on: ubuntu-latest
1213
steps:

.github/workflows/markdownlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ permissions:
1616
contents: read
1717
jobs:
1818
markdownlint:
19+
if: "!contains(github.event.pull_request.title, '[citest_skip]')"
1920
runs-on: ubuntu-latest
2021
steps:
2122
- name: Update pip, git

.github/workflows/qemu-kvm-integration-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ permissions:
1818
statuses: write
1919
jobs:
2020
scenario:
21+
if: "!contains(github.event.pull_request.title, '[citest_skip]')"
2122
runs-on: ubuntu-latest
2223

2324
strategy:

.github/workflows/test_converting_readme.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions:
1515
contents: read
1616
jobs:
1717
test_converting_readme:
18+
if: "!contains(github.event.pull_request.title, '[citest_skip]')"
1819
runs-on: ubuntu-latest
1920
permissions:
2021
contents: write

.github/workflows/woke.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on: # yamllint disable-line rule:truthy
55
- pull_request
66
jobs:
77
woke:
8+
if: "!contains(github.event.pull_request.title, '[citest_skip]')"
89
name: Detect non-inclusive language
910
runs-on: ubuntu-latest
1011
steps:

0 commit comments

Comments
 (0)