Skip to content

Commit 1ef87c8

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 d7ce39f commit 1ef87c8

11 files changed

Lines changed: 11 additions & 0 deletions

.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/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on: # yamllint disable-line rule:truthy
1414
- cron: 10 1 * * 4
1515
jobs:
1616
analyze:
17+
if: "!contains(github.event.pull_request.title, '[citest_skip]')"
1718
name: Analyze
1819
runs-on: ubuntu-latest
1920
permissions:

.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/python-unit-test.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
python:
19+
if: "!contains(github.event.pull_request.title, '[citest_skip]')"
1920
strategy:
2021
matrix:
2122
pyver_os:

.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/shellcheck.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
shellcheck:
21+
if: "!contains(github.event.pull_request.title, '[citest_skip]')"
2122
runs-on: ubuntu-latest
2223
steps:
2324
- name: Update git

.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

0 commit comments

Comments
 (0)