mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 18:35:13 +00:00
ci: Make badges consistent, run markdownlint all .md files (#631)
- Consistently generate badges for GH workflows in README RHELPLAN-146921 - Run markdownlint on all .md files - Add custom-woke-action if not used already - Use woke from linux-system-roles/lsr-woke-action Signed-off-by: Sergei Petrosian <spetrosi@redhat.com>
This commit is contained in:
parent
4dd282e0c5
commit
cd7eafe009
10 changed files with 18 additions and 186 deletions
8
.github/workflows/markdownlint.yml
vendored
8
.github/workflows/markdownlint.yml
vendored
|
|
@ -27,8 +27,12 @@ jobs:
|
|||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Lint README.md
|
||||
# CHANGELOG.md is generated automatically from PR titles and descriptions
|
||||
# It might have issues but they are not critical
|
||||
- name: Lint all markdown files except for CHANGELOG.md
|
||||
uses: docker://avtodev/markdown-lint:master
|
||||
with:
|
||||
args: README.md
|
||||
args: >-
|
||||
--ignore=CHANGELOG.md
|
||||
**/*.md
|
||||
config: .markdownlint.yaml
|
||||
|
|
|
|||
8
.github/workflows/woke.yml
vendored
8
.github/workflows/woke.yml
vendored
|
|
@ -1,18 +1,18 @@
|
|||
# yamllint disable rule:line-length
|
||||
name: Check for non-inclusive language
|
||||
name: Woke
|
||||
on: # yamllint disable-line rule:truthy
|
||||
- pull_request
|
||||
jobs:
|
||||
woke:
|
||||
name: woke
|
||||
name: Detect non-inclusive language
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: custom woke
|
||||
- name: Run lsr-woke-action
|
||||
# Originally, uses: get-woke/woke-action@v0
|
||||
uses: ./.github/actions/custom-woke-action
|
||||
uses: linux-system-roles/lsr-woke-action@main
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue