From d95d2e3eae6c9f7b0831e4bfedeba6575f9c1cea Mon Sep 17 00:00:00 2001 From: Fabrizio Ferri-Benedetti Date: Thu, 13 Nov 2025 17:30:39 +0100 Subject: [PATCH] Add GH workflows for Vale --- .github/workflows/vale-linting.yml | 22 ++++++++++++++++++++++ .github/workflows/vale-reporting.yml | 23 +++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/vale-linting.yml create mode 100644 .github/workflows/vale-reporting.yml diff --git a/.github/workflows/vale-linting.yml b/.github/workflows/vale-linting.yml new file mode 100644 index 0000000000..90b9214231 --- /dev/null +++ b/.github/workflows/vale-linting.yml @@ -0,0 +1,22 @@ +name: Vale Documentation Linting + +on: + pull_request: + paths: + - '**.md' + - '**.adoc' + +permissions: + contents: read + +jobs: + vale: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - name: Run Vale Linter + uses: elastic/vale-rules/lint@main \ No newline at end of file diff --git a/.github/workflows/vale-reporting.yml b/.github/workflows/vale-reporting.yml new file mode 100644 index 0000000000..3fe8eed8d4 --- /dev/null +++ b/.github/workflows/vale-reporting.yml @@ -0,0 +1,23 @@ +name: Vale Report + +on: + workflow_run: + workflows: ["Vale Documentation Linting"] + types: + - completed + +permissions: + pull-requests: read + +jobs: + report: + runs-on: ubuntu-latest + if: github.event.workflow_run.event == 'pull_request' + permissions: + pull-requests: write + + steps: + - name: Post Vale Results + uses: elastic/vale-rules/report@main + with: + github_token: ${{ secrets.GITHUB_TOKEN }}