Skip to content

Commit 62396e1

Browse files
committed
.github/workflows: add validation of renovate config
Add a GHA workflow to validate the renovate configuration when it is changed by a PR. This was taken from the main cilium repository. Signed-off-by: Tobias Klauser <tobias@cilium.io>
1 parent cc1a61d commit 62396e1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Validate Renovate configuration
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/renovate.json5'
7+
8+
jobs:
9+
validate:
10+
name: Validate Renovate configuration
11+
runs-on: ubuntu-latest
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+
docker run --rm --entrypoint "renovate-config-validator"
20+
-v "${{ github.workspace }}/.github/renovate.json5":"/renovate.json5"
21+
ghcr.io/renovatebot/renovate:latest "/renovate.json5"

0 commit comments

Comments
 (0)