Skip to content

Commit afcfbf3

Browse files
tklauserbrb
authored andcommitted
ci: add workflow to validate renovate config
So e.g. syntax errors in the renovate config are caught during PRs. Signed-off-by: Tobias Klauser <[email protected]>
1 parent 28ff245 commit afcfbf3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Validate Renovate configuration
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'renovate.json'
7+
8+
jobs:
9+
validate:
10+
name: Validate Renovate configuration
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: Checkout configuration
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
16+
# this step uses latest renovate slim release
17+
- name: Validate configuration
18+
run: |
19+
# renovate: datasource=docker
20+
export RENOVATE_IMAGE=ghcr.io/renovatebot/renovate:40.60.0@sha256:3af0fc62061baec7ed70cf482f81265462259470edfbe6ba714d568228eef70e
21+
docker run --rm --entrypoint "renovate-config-validator" \
22+
-v "${{ github.workspace }}/.github/renovate.json":"/renovate.json" \
23+
${RENOVATE_IMAGE} "/renovate.json"

0 commit comments

Comments
 (0)