mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-18 00:46:05 +00:00
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>
This commit is contained in:
parent
a01c900425
commit
4e30ef51b1
11 changed files with 33 additions and 0 deletions
3
.github/workflows/ansible-lint.yml
vendored
3
.github/workflows/ansible-lint.yml
vendored
|
|
@ -18,6 +18,9 @@ permissions:
|
|||
contents: read
|
||||
jobs:
|
||||
ansible_lint:
|
||||
if: |
|
||||
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Update pip, git
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@ permissions:
|
|||
contents: read
|
||||
jobs:
|
||||
ansible_managed_var_comment:
|
||||
if: |
|
||||
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Update pip, git
|
||||
|
|
|
|||
3
.github/workflows/ansible-test.yml
vendored
3
.github/workflows/ansible-test.yml
vendored
|
|
@ -18,6 +18,9 @@ permissions:
|
|||
contents: read
|
||||
jobs:
|
||||
ansible_test:
|
||||
if: |
|
||||
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Update pip, git
|
||||
|
|
|
|||
3
.github/workflows/codeql.yml
vendored
3
.github/workflows/codeql.yml
vendored
|
|
@ -14,6 +14,9 @@ on: # yamllint disable-line rule:truthy
|
|||
- cron: 39 10 * * 0
|
||||
jobs:
|
||||
analyze:
|
||||
if: |
|
||||
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
|
|
|||
3
.github/workflows/codespell.yml
vendored
3
.github/workflows/codespell.yml
vendored
|
|
@ -7,6 +7,9 @@ permissions:
|
|||
contents: read
|
||||
jobs:
|
||||
codespell:
|
||||
if: |
|
||||
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
|
||||
name: Check for spelling errors
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
|||
3
.github/workflows/markdownlint.yml
vendored
3
.github/workflows/markdownlint.yml
vendored
|
|
@ -16,6 +16,9 @@ permissions:
|
|||
contents: read
|
||||
jobs:
|
||||
markdownlint:
|
||||
if: |
|
||||
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Update pip, git
|
||||
|
|
|
|||
3
.github/workflows/python-unit-test.yml
vendored
3
.github/workflows/python-unit-test.yml
vendored
|
|
@ -16,6 +16,9 @@ permissions:
|
|||
contents: read
|
||||
jobs:
|
||||
python:
|
||||
if: |
|
||||
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
|
||||
strategy:
|
||||
matrix:
|
||||
pyver_os:
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@ permissions:
|
|||
statuses: write
|
||||
jobs:
|
||||
scenario:
|
||||
if: |
|
||||
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
|
|
|
|||
3
.github/workflows/shellcheck.yml
vendored
3
.github/workflows/shellcheck.yml
vendored
|
|
@ -18,6 +18,9 @@ permissions:
|
|||
contents: read
|
||||
jobs:
|
||||
shellcheck:
|
||||
if: |
|
||||
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Update git
|
||||
|
|
|
|||
3
.github/workflows/test_converting_readme.yml
vendored
3
.github/workflows/test_converting_readme.yml
vendored
|
|
@ -15,6 +15,9 @@ permissions:
|
|||
contents: read
|
||||
jobs:
|
||||
test_converting_readme:
|
||||
if: |
|
||||
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
|
|
|||
3
.github/workflows/woke.yml
vendored
3
.github/workflows/woke.yml
vendored
|
|
@ -5,6 +5,9 @@ on: # yamllint disable-line rule:truthy
|
|||
- pull_request
|
||||
jobs:
|
||||
woke:
|
||||
if: |
|
||||
!((github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[citest_skip]')) ||
|
||||
(github.event_name == 'push' && contains(github.event.head_commit.message, '[citest_skip]')))
|
||||
name: Detect non-inclusive language
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue