This commit is contained in:
parent
6d54deb949
commit
973d9396b6
@ -1,18 +1,17 @@
|
|||||||
name: Markdown linter
|
name: Markdown linter
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# pull_request:
|
pull_request:
|
||||||
# paths: [ "**/*.md" ]
|
paths: [ "**/*.md" ]
|
||||||
# types: [ "opened", "reopened", "synchronize" ]
|
types: [ "opened", "reopened", "synchronize" ]
|
||||||
push: {}
|
push:
|
||||||
# paths: [ "**/*.md" ]
|
paths: [ "**/*.md" ]
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
markdown-link-checker:
|
markdown-link-checker:
|
||||||
container:
|
container:
|
||||||
image: docker.io/library/node:22.9.0-alpine
|
image: docker.io/library/node:22.9.0-alpine
|
||||||
# options: --entrypoint /bin/sh
|
|
||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@ -23,3 +22,33 @@ jobs:
|
|||||||
- uses: actions/checkout@v4.2.2
|
- uses: actions/checkout@v4.2.2
|
||||||
- name: Verify links in markdown files
|
- name: Verify links in markdown files
|
||||||
run: npm install && npm run readme:link
|
run: npm install && npm run readme:link
|
||||||
|
|
||||||
|
markdown-lint:
|
||||||
|
container:
|
||||||
|
image: docker.io/library/node:22.9.0-alpine
|
||||||
|
runs-on:
|
||||||
|
- ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install tooling
|
||||||
|
run: |
|
||||||
|
apk update
|
||||||
|
apk add git
|
||||||
|
- uses: actions/checkout@v4.2.2
|
||||||
|
- name: Link markdown files
|
||||||
|
run: npm install && npm run readme:lint
|
||||||
|
|
||||||
|
generate-parameters:
|
||||||
|
container:
|
||||||
|
image: docker.io/library/node:22.9.0-alpine
|
||||||
|
runs-on:
|
||||||
|
- ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install tooling
|
||||||
|
run: |
|
||||||
|
apk update
|
||||||
|
apk add git
|
||||||
|
- uses: actions/checkout@v4.2.2
|
||||||
|
- name: Generate parameter section in README
|
||||||
|
run: npm run readme:parameters
|
||||||
|
- name: Compare diff
|
||||||
|
run: git diff --exit-code --name-only README.md
|
||||||
|
Loading…
Reference in New Issue
Block a user