mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 18:35:13 +00:00
Add a check for usage of terms and language that is considered non-inclusive. We are using the woke tool for this with a wordlist that can be found at https://github.com/linux-system-roles/tox-lsr/blob/main/src/tox_lsr/config_files/woke.yml Note: this commit uses the customized woke placed locally in .github/actions/custom-woke-action to support a new option --count-only-error-for-failure option. The local action custom-woke-action will be replaced with the official woke once https://github.com/get-woke/woke/pull/252 (Add an option "--count-only-error-for-failure") is processed. Signed-off-by: Noriko Hosoi <nhosoi@redhat.com>
19 lines
643 B
YAML
19 lines
643 B
YAML
# yamllint disable rule:line-length
|
|
name: Check for non-inclusive language
|
|
on: # yamllint disable-line rule:truthy
|
|
- pull_request
|
|
jobs:
|
|
woke:
|
|
name: woke
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: custom woke
|
|
# Originally, uses: get-woke/woke-action@v0
|
|
uses: ./.github/actions/custom-woke-action
|
|
with:
|
|
woke-args: "-c https://raw.githubusercontent.com/linux-system-roles/tox-lsr/main/src/tox_lsr/config_files/woke.yml --count-only-error-for-failure"
|
|
# Cause the check to fail on any broke rules
|
|
fail-on-error: true
|