prometheus-postgres-exporter/.gitea/workflows/markdown-linters.yaml

55 lines
1.2 KiB
YAML
Raw Normal View History

2025-01-11 11:36:09 +00:00
name: Markdown linter
on:
2025-01-11 12:39:45 +00:00
pull_request:
paths: [ "**/*.md" ]
types: [ "opened", "reopened", "synchronize" ]
push:
paths: [ "**/*.md" ]
2025-01-11 11:36:09 +00:00
workflow_dispatch: {}
jobs:
markdown-link-checker:
2025-01-11 12:30:48 +00:00
container:
image: docker.io/library/node:22.9.0-alpine
2025-01-11 11:36:09 +00:00
runs-on:
- ubuntu-latest
steps:
2025-01-11 12:34:44 +00:00
- name: Install tooling
run: |
2025-01-11 12:30:48 +00:00
apk update
2025-01-11 12:32:59 +00:00
apk add git
2025-01-11 11:42:11 +00:00
- uses: actions/checkout@v4.2.2
2025-01-11 12:10:56 +00:00
- name: Verify links in markdown files
2025-01-11 12:39:45 +00:00
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