Skip to content

Commit

Permalink
.github/workflows: add validation of renovate config
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tklauser committed Nov 28, 2024
1 parent cc1a61d commit b10981c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/renovate-config-validator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Validate Renovate configuration

on:
pull_request:
paths:
- '.github/renovate.json5'

jobs:
validate:
name: Validate Renovate configuration
runs-on: ubuntu-latest
steps:
- name: Checkout configuration
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# this step uses latest renovate slim release
- name: Validate configuration
run: >
docker run --rm --entrypoint "renovate-config-validator"
-v "${{ github.workspace }}/.github/renovate.json5":"/renovate.json5"
ghcr.io/renovatebot/renovate:latest "/renovate.json5"

0 comments on commit b10981c

Please sign in to comment.