From 973d9396b63c8b49f6a79be33d017fc7a25801de Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:39:45 +0100 Subject: [PATCH] fix --- .gitea/workflows/markdown-linters.yaml | 43 +++++++++++++++++++++----- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index cc06f49..2b15e89 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -1,18 +1,17 @@ name: Markdown linter on: - # pull_request: - # paths: [ "**/*.md" ] - # types: [ "opened", "reopened", "synchronize" ] - push: {} - # paths: [ "**/*.md" ] + pull_request: + paths: [ "**/*.md" ] + types: [ "opened", "reopened", "synchronize" ] + push: + paths: [ "**/*.md" ] workflow_dispatch: {} jobs: markdown-link-checker: container: image: docker.io/library/node:22.9.0-alpine - # options: --entrypoint /bin/sh runs-on: - ubuntu-latest steps: @@ -22,4 +21,34 @@ jobs: apk add git - uses: actions/checkout@v4.2.2 - name: Verify links in markdown files - run: npm install && npm run readme:link \ No newline at end of file + 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