Skip to content

Commit 5e5e64d

Browse files
Joonas HiltunenJontzii
authored andcommitted
Add shared "check renovatebot config" action
1 parent 477edb1 commit 5e5e64d

2 files changed

Lines changed: 34 additions & 4 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Shared check renovatebot config
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
config_file_path:
7+
description: Path to the Renovatebot config file to validate
8+
type: string
9+
required: true
10+
checkout_submodules:
11+
description: Whether to checkout submodules
12+
type: string
13+
required: false
14+
default: "false"
15+
16+
jobs:
17+
validate:
18+
name: Validate renovatebot config
19+
runs-on: ubuntu-24.04
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v5
23+
with:
24+
submodules: ${{ inputs.checkout_submodules }}
25+
26+
- name: Validate config
27+
uses: suzuki-shunsuke/github-action-renovate-config-validator@c22827f47f4f4a5364bdba19e1fe36907ef1318e # v1.1.1
28+
with:
29+
config_file_path: ${{ inputs.config_file_path }}

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,11 @@ onboarding flow ends.
294294

295295
Example:
296296
```
297-
- name: Validate
298-
uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.3
299-
with:
300-
config_file_path: .github/renovate.json5
297+
jobs:
298+
validate:
299+
uses: HSLdevcom/jore4-tools/.github/workflows/shared-check-renovatebot-config.yml@shared-check-renovatebot-config-v1
300+
with:
301+
config_file_path: renovatebot/jore4-default-preset.json5
301302
```
302303

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

0 commit comments

Comments
 (0)