mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-21 18:40:19 +01:00
Apply latest changes for README conversion
* Remove badges from README.md prior to converting to HTML * Replace Commitlint with PR Title Lint * Lint all markdown files except for CHANGELOG.md not just README.md * Use woke form from linux-system-roles
This commit is contained in:
parent
625b74a2cc
commit
a6073c4ce3
6 changed files with 28 additions and 16 deletions
3
.github/workflows/build_docs.yml
vendored
3
.github/workflows/build_docs.yml
vendored
|
@ -75,6 +75,9 @@ jobs:
|
|||
- name: Ensure that version and docs directories exist
|
||||
run: mkdir -p ${{ env.RELEASE_VERSION }} docs
|
||||
|
||||
- name: Remove badges from README.md prior to converting to HTML
|
||||
run: sed -i '1,8 {/^\[\!\[.*/d}' ref_branch/README.md
|
||||
|
||||
- name: Convert README.md to HTML and save to the version directory
|
||||
uses: docker://pandoc/core:latest
|
||||
with:
|
||||
|
|
9
.github/workflows/markdownlint.yml
vendored
9
.github/workflows/markdownlint.yml
vendored
|
@ -27,8 +27,13 @@ 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
|
||||
--ignore=tests/roles/ansible-sshd/CHANGELOG.md
|
||||
**/*.md
|
||||
config: .markdownlint.yaml
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: Commitlint
|
||||
name: PR Title Lint
|
||||
on: # yamllint disable-line rule:truthy
|
||||
pull_request:
|
||||
types:
|
||||
|
@ -25,7 +25,7 @@ jobs:
|
|||
run: npm install @commitlint/config-conventional @commitlint/cli
|
||||
|
||||
- name: Run commitlint on PR title
|
||||
run: >-
|
||||
echo '${{ github.event.pull_request.title }}' |
|
||||
npx commitlint --verbose
|
||||
|
||||
env:
|
||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||
# Echo from env variable to avoid bash errors with extra characters
|
||||
run: echo "$PR_TITLE" | npx commitlint --verbose
|
5
.github/workflows/test_converting_readme.yml
vendored
5
.github/workflows/test_converting_readme.yml
vendored
|
@ -28,7 +28,10 @@ jobs:
|
|||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Convert README.md to HTML and save to the version directory
|
||||
- name: Remove badges from README.md prior to converting to HTML
|
||||
run: sed -i '1,8 {/^\[\!\[.*/d}' README.md
|
||||
|
||||
- name: Convert README.md to HTML
|
||||
uses: docker://pandoc/core:latest
|
||||
with:
|
||||
args: >-
|
||||
|
|
11
.github/workflows/woke.yml
vendored
11
.github/workflows/woke.yml
vendored
|
@ -1,18 +1,19 @@
|
|||
# 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: woke
|
||||
uses: get-woke/woke-action@v0
|
||||
- name: Run lsr-woke-action
|
||||
# Originally, uses: get-woke/woke-action@v0
|
||||
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"
|
||||
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
|
||||
|
|
|
@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported by contacting the project team at matt@willsher.systems. All
|
||||
reported by contacting the project team at <matt@willsher.systems>. All
|
||||
complaints will be reviewed and investigated and will result in a response that
|
||||
is deemed necessary and appropriate to the circumstances. The project team is
|
||||
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||
|
@ -68,9 +68,9 @@ members of the project's leadership.
|
|||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
||||
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see
|
||||
https://www.contributor-covenant.org/faq
|
||||
<https://www.contributor-covenant.org/faq>
|
||||
|
|
Loading…
Reference in a new issue