Skip to content

Commit 32bb5fd

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 0f6cb58 commit 32bb5fd

File tree

10 files changed

+10
-2
lines changed

10 files changed

+10
-2
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/tft.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
tf_scope: private
181181
api_key: ${{ secrets.TF_API_KEY_RH }}
182182
update_pull_request_status: false
183-
tmt_plan_filter: "tag:playbooks_parallel,template"
183+
tmt_plan_filter: "tag:playbooks_parallel,cvm_deploy"
184184

185185
- name: Set final commit status
186186
uses: myrotvorets/set-commit-status-action@master

.github/workflows/weekly_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Weekly CI trigger
44
on: # yamllint disable-line rule:truthy
55
workflow_dispatch:
66
schedule:
7-
- cron: 0 0 * * 6
7+
- cron: 0 23 * * 6
88
env:
99
BRANCH_NAME: weekly-ci
1010
COMMIT_MESSAGE: "ci: This PR is to trigger periodic CI testing"

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