28 lines
787 B
YAML
28 lines
787 B
YAML
name: PR Checks
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
|
|
jobs:
|
|
# Validate the workflow yaml files parse (PyYAML via pip only when needed)
|
|
yaml-parse:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
- name: Parse all workflow yaml files
|
|
run: |
|
|
pip install pyyaml --quiet
|
|
python3 - <<'EOF'
|
|
import glob, yaml
|
|
for f in glob.glob('.gitea/workflows/*.yaml'):
|
|
with open(f) as fh:
|
|
yaml.safe_load(fh.read())
|
|
print(f, 'ok')
|
|
EOF
|
|
|
|
# Validate the central config.json itself with renovate-config-validator
|
|
validate-central-config:
|
|
uses: ./.gitea/workflows/validate.yaml
|
|
with:
|
|
config_path: config.json
|