Skip to content

Commit 8cc478b

Browse files
committed
Added renovate validate workflow.
1 parent 303e479 commit 8cc478b

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Validate Renovate config
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
validate:
12+
name: Validate renovate config
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Check for config changes
18+
id: diff
19+
uses: tj-actions/changed-files@v46
20+
with:
21+
files: |
22+
renovate.json
23+
24+
- shell: bash
25+
if: ${{ steps.diff.outputs.any_changed == 'true' }}
26+
run: |
27+
set +o pipefail
28+
npx -y -p renovate -c renovate-config-validator \
29+
| tee /dev/stderr \
30+
| grep -Evz '(ERROR|could not be parsed)'

0 commit comments

Comments
 (0)