From cc33ca2e0c5eae23f0afb717b72692a974e957c8 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 13:49:51 +0100 Subject: [PATCH] fix --- .gitea/workflows/generate-readme.yaml | 28 ++++++++++++++++++++++++++ .gitea/workflows/markdown-linters.yaml | 22 ++------------------ 2 files changed, 30 insertions(+), 20 deletions(-) create mode 100644 .gitea/workflows/generate-readme.yaml diff --git a/.gitea/workflows/generate-readme.yaml b/.gitea/workflows/generate-readme.yaml new file mode 100644 index 0000000..c47a6a5 --- /dev/null +++ b/.gitea/workflows/generate-readme.yaml @@ -0,0 +1,28 @@ +name: Generate README + +on: + pull_request: + paths: [ "README.md", "values.yaml" ] + types: [ "opened", "reopened", "synchronize" ] + push: + paths: [ "README.md", "values.yaml" ] + workflow_dispatch: {} + +jobs: + 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 install + npm run readme:parameters + - name: Compare diff + run: git diff --exit-code --name-only README.md diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml index ba67589..c259df2 100644 --- a/.gitea/workflows/markdown-linters.yaml +++ b/.gitea/workflows/markdown-linters.yaml @@ -4,8 +4,8 @@ on: pull_request: paths: [ "**/*.md" ] types: [ "opened", "reopened", "synchronize" ] - push: {} - # paths: [ "**/*.md" ] + push: + paths: [ "**/*.md" ] workflow_dispatch: {} jobs: @@ -40,21 +40,3 @@ jobs: 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 install - npm run readme:parameters - - name: Compare diff - run: git diff --exit-code --name-only README.md