Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions .github/workflows/check-renovatebot-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ on:

jobs:
validate:
name: Validate renovatebot config
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Validate
uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.3
with:
config_file_path: renovatebot/jore4-default-preset.json5
uses: HSLdevcom/jore4-tools/.github/workflows/shared-check-renovatebot-config.yml@shared-check-renovatebot-config-v1
with:
config_file_path: renovatebot/jore4-default-preset.json5
29 changes: 29 additions & 0 deletions .github/workflows/shared-check-renovatebot-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Shared check renovatebot config

on:
workflow_call:
inputs:
config_file_path:
description: Path to the Renovatebot config file to validate
type: string
required: true
checkout_submodules:
description: Whether to checkout submodules
type: string
required: false
default: "false"

jobs:
validate:
name: Validate renovatebot config
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v5
with:
submodules: ${{ inputs.checkout_submodules }}

- name: Validate config
uses: suzuki-shunsuke/github-action-renovate-config-validator@c22827f47f4f4a5364bdba19e1fe36907ef1318e # v1.1.1
with:
config_file_path: ${{ inputs.config_file_path }}
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,11 @@ onboarding flow ends.

Example:
```
- name: Validate
uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.3
with:
config_file_path: .github/renovate.json5
jobs:
validate:
uses: HSLdevcom/jore4-tools/.github/workflows/shared-check-renovatebot-config.yml@shared-check-renovatebot-config-v1
with:
config_file_path: renovatebot/jore4-default-preset.json5
```

To see a bit more in detail how the renovatebot rules work, check the comments within the
Expand Down