Find a file
finkregh 412cdcce49
All checks were successful
test / test (push) Successful in 3m16s
Merge pull request 'Update action.yaml' (#1) from finkregh-patch-1 into main
Reviewed-on: #1
2025-09-02 15:46:21 +00:00
.forgejo/workflows Update .forgejo/workflows/deploy.yml 2025-03-26 14:48:48 +00:00
tests feat: support multiple files (#701) 2024-08-29 08:55:12 +09:00
action.yaml Remove debug 2025-09-02 15:36:14 +00:00
aqua.yaml chore(deps): update dependency aquaproj/aqua-registry to v4.332.0 (#896) 2025-03-24 15:07:07 +00:00
LICENSE Initial commit 2022-01-04 19:16:15 +09:00
README.md feat: support multiple files (#701) 2024-08-29 08:55:12 +09:00
renovate.json chore(deps): update dependency aquaproj/aqua-renovate-config to v2.7.5 (#873) 2025-02-24 00:58:41 +00:00

github-action-renovate-config-validator

GitHub Actions for renovate-config-validator

Requirement

npx

Input

Please see action.yaml too.

strict

required: false

The input was introduced from v1.0.0. Either true of false. If it's true, renovate-config-validator's --strict option is set. The default is true.

validator_version

required: false

The version of renovate-config-validator. By default, the latest version is used.

config_file_path

required: false

Renovate Configuration file path. By default, the following files are validated.

  • .github/renovate.json
  • .github/renovate.json5
  • .gitlab/renovate.json
  • .gitlab/renovate.json5
  • .renovaterc.json
  • .renovaterc.json5
  • renovate.json
  • renovate.json5
  • .renovaterc

If you want to validate multiple files, you can pass multile lines. Leading spaces on each line are removed.

with:
  config_file_path: |
    default.json
    foo.json

You can pass config_file_path through output command.

      - id: files
        run: |
          set -euo pipefail
          files=$(git ls-files | grep renovate.json)
          # https://stackoverflow.com/a/74232400
          EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
          {
            echo "files<<$EOF"
            echo "$files"
            echo "$EOF"
          } >> "$GITHUB_OUTPUT"
      - name: Pass files through output
        uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.1.0
        with:
          config_file_path: ${{ steps.files.outputs.files }}

Output

Nothing.

Example

name: renovate-config-validator

on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main
jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.0.1

You can specify renovate-config-validator version and configuration file path.

steps:
  - uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.0.1
    with:
      validator_version: "31.15.0"
      config_file_path: renovate.json5
      strict: "false"

License

MIT