Skip to content

Commit

Permalink
ci: add validate-renovate.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
icefed committed Aug 17, 2024
1 parent f0c36d8 commit 8379d98
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/validate-renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Validate Renovate config

on:
push:
branches:
- main
pull_request:

jobs:
validate:
name: Validate renovate config
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check for config changes
id: diff
uses: tj-actions/changed-files@v44
with:
files: |
renovate.json5
- shell: bash
if: ${{ steps.diff.outputs.any_changed == 'true' }}
run: |
set +o pipefail
npx -y -p renovate -c renovate-config-validator \
| tee /dev/stderr \
| grep -Evz '(ERROR|could not be parsed)'

0 comments on commit 8379d98

Please sign in to comment.