feat: reusable Renovate config validation workflow (renovate-config-validator) #3

Merged
jcabillot merged 4 commits from feat/renovate-config-validate-workflow into main 2026-10-08 17:47:12 -04:00
Showing only changes of commit 315ffb0980 - Show all commits
+6 -9
View File
@@ -4,14 +4,15 @@ on:
pull_request: pull_request:
jobs: jobs:
# Validate the workflow yaml files parse (PyYAML via pip only when needed) # All workflow yaml parse + renovate-config-validator on central config
yaml-parse: validate:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: renovate/renovate:43
steps: steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Parse all workflow yaml files - name: Parse all workflow yaml files
# the renovate image ships its own python + pyyaml
run: | run: |
pip install pyyaml --quiet
python3 - <<'EOF' python3 - <<'EOF'
import glob, yaml import glob, yaml
for f in glob.glob('.gitea/workflows/*.yaml'): for f in glob.glob('.gitea/workflows/*.yaml'):
@@ -19,9 +20,5 @@ jobs:
yaml.safe_load(fh.read()) yaml.safe_load(fh.read())
print(f, 'ok') print(f, 'ok')
EOF EOF
- name: Validate central Renovate config
# Validate the central config.json itself with renovate-config-validator run: renovate-config-validator config.json
validate-central-config:
uses: ./.gitea/workflows/validate.yaml
with:
config_path: config.json