diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 78c582639..75e795ccd 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -11,6 +11,11 @@ on: description: Where Vale will look for files to lint default: '["README.md","CONTRIBUTING.md","docs/"]' required: false + vale-flags: + type: string + description: Space-delimited list of flags for the Vale CLI. + default: "--glob=*.md" + required: false vale-fail-on-error: description: Exit with 1 when at least one error was reported. type: boolean @@ -44,6 +49,7 @@ jobs: uses: errata-ai/vale-action@v2.1.1 with: files: ${{ inputs.vale-files }} + vale_flags: ${{ inputs.vale-flags }} fail_on_error: ${{ inputs.vale-fail-on-error }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -88,7 +94,7 @@ jobs: --exclude terraform.io --exclude hashicorp.com ${{ inputs.linkcheck-files }} - + - name: Save lychee cache uses: actions/cache/save@v5.0.3 if: always() diff --git a/docs/changelog.md b/docs/changelog.md index ffff1d561..a9e14a884 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Each revision is versioned by the date of the revision. +## 2026-03-18 + +- Support "vale-flags" input parameter for the `docs` workflow to allow passing additional flags to the Vale CLI. + ## 2026-03-10 - Drop leftover registry input.