diff --git a/.github/workflows/validate-renovate.yaml b/.github/workflows/validate-renovate.yaml new file mode 100644 index 000000000..3c1752d31 --- /dev/null +++ b/.github/workflows/validate-renovate.yaml @@ -0,0 +1,30 @@ +--- +name: Validate Renovate config + +on: + push: + branches: + - main + pull_request: + +jobs: + validate: + name: Validate renovate config + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Check for config changes + id: diff + uses: tj-actions/changed-files@v44 + with: + files: | + renovate.json5 + + - shell: bash + if: ${{ steps.diff.outputs.any_changed == 'true' }} + run: | + set +o pipefail + npx -y -p renovate -c renovate-config-validator \ + | tee /dev/stderr \ + | grep -Evz '(ERROR|could not be parsed)'