Skip to content

Commit 967a95f

Browse files
authored
docs: Make badges consistent, run markdownlint on all .md files (#179)
- Consistently generate badges for GH workflows in roles RHELPLAN-146921 - Run markdownlint on all .md files - Rename woke action to Woke for a pretty badge - Use woke from linux-system-roles/lsr-woke-action Signed-off-by: Sergei Petrosian <spetrosi@redhat.com>
1 parent 6f0acc5 commit 967a95f

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

.github/workflows/markdownlint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ jobs:
2727
- name: Check out code
2828
uses: actions/checkout@v3
2929

30-
- name: Lint README.md
30+
# CHANGELOG.md is generated automatically from PR titles and descriptions
31+
# It might have issues but they are not critical
32+
- name: Lint all markdown files except for CHANGELOG.md
3133
uses: docker://avtodev/markdown-lint:master
3234
with:
33-
args: README.md
35+
args: >-
36+
--ignore=CHANGELOG.md
37+
**/*.md
3438
config: .markdownlint.yaml

.github/workflows/woke.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
# yamllint disable rule:line-length
2-
name: Check for non-inclusive language
2+
name: Woke
33
on: # yamllint disable-line rule:truthy
44
- pull_request
55
jobs:
66
woke:
7-
name: woke
7+
name: Detect non-inclusive language
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
1111
uses: actions/checkout@v3
1212

13-
- name: woke
14-
uses: get-woke/woke-action@v0
13+
- name: Run lsr-woke-action
14+
# Originally, uses: get-woke/woke-action@v0
15+
uses: linux-system-roles/lsr-woke-action@main
1516
with:
16-
woke-args: "-c https://raw.githubusercontent.com/linux-system-roles/tox-lsr/main/src/tox_lsr/config_files/woke.yml"
17+
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"
1718
# Cause the check to fail on any broke rules
1819
fail-on-error: true

README-ansible.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Introduction to Ansible for Linux System Roles
2-
==============================================
1+
# Introduction to Ansible for Linux System Roles
32

43
If you are not familiar with Ansible, please see
54
[Introduction to Ansible for Linux System Roles](https://linux-system-roles.github.io/documentation/intro-to-ansible-for-system-roles.html),

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# firewall
22

3-
![CI Testing](https://github.com/linux-system-roles/firewall/workflows/tox/badge.svg)
3+
[![ansible-lint.yml](https://github.com/linux-system-roles/firewall/actions/workflows/ansible-lint.yml/badge.svg)](https://github.com/linux-system-roles/firewall/actions/workflows/ansible-lint.yml) [![ansible-test.yml](https://github.com/linux-system-roles/firewall/actions/workflows/ansible-test.yml/badge.svg)](https://github.com/linux-system-roles/firewall/actions/workflows/ansible-test.yml) [![codeql.yml](https://github.com/linux-system-roles/firewall/actions/workflows/codeql.yml/badge.svg)](https://github.com/linux-system-roles/firewall/actions/workflows/codeql.yml) [![python-unit-test.yml](https://github.com/linux-system-roles/firewall/actions/workflows/python-unit-test.yml/badge.svg)](https://github.com/linux-system-roles/firewall/actions/workflows/python-unit-test.yml) [![shellcheck.yml](https://github.com/linux-system-roles/firewall/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/linux-system-roles/firewall/actions/workflows/shellcheck.yml) [![markdownlint.yml](https://github.com/linux-system-roles/firewall/actions/workflows/markdownlint.yml/badge.svg)](https://github.com/linux-system-roles/firewall/actions/workflows/markdownlint.yml) [![woke.yml](https://github.com/linux-system-roles/firewall/actions/workflows/woke.yml/badge.svg)](https://github.com/linux-system-roles/firewall/actions/workflows/woke.yml)
4+
5+
---
46

57
This role configures the firewall on machines that are using firewalld.
68
If firewalld is not in use, the role will install (if not already installed),

contributing.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
Contributing to the firewall Linux System Role
2-
==============================================
1+
# Contributing to the firewall Linux System Role
32

4-
Where to start
5-
--------------
3+
## Where to start
64

75
The first place to go is [Contribute](https://linux-system-roles.github.io/contribute.html).
86
This has all of the common information that all role developers need:
@@ -22,7 +20,7 @@ are likely to be suitable for new contributors!
2220
**Code** is managed on [Github](https://github.com/linux-system-roles/firewall), using
2321
[Pull Requests](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests).
2422

25-
### Python Code
23+
## Python Code
2624

2725
The Python code needs to be **compatible with the Python versions supported by
2826
the role platform**.

0 commit comments

Comments
 (0)