Files
gitea-pipelines/.gitea/workflows/pr.yaml
T
Hermes Agent ad0d215945
PR Checks / hadolint-shim (pull_request) Failing after 4s
Renovate Config Validation / validate (pull_request) Successful in 1m44s
PR Checks / validate-central-config (pull_request) Successful in 1m44s
ci: PR checks with central-config validation
2026-10-08 21:09:17 +00:00

29 lines
804 B
YAML

name: PR Checks
on:
workflow_dispatch:
pull_request:
jobs:
# validate the consumer-facing workflows答复 lint (YAML/structure)
hadolint-shim:
runs-on: ubuntu-latest
steps:
- name: Lint the workflow yaml files
run: |
# Just ensure the yaml files parse and each uses supported fields
python3 - <<'EOF'
import sys, yaml, glob
bad = 0
for f in glob.glob('.gitea/workflows/*.yaml'):
with open(f) as fh:
yaml.safe_load(fh.read())
print(f, 'ok')
sys.exit(1 if bad else 0)
EOF
# Validate the CENTRAL config.json itself with renovate-config-validator
validate-central-config:
uses: ./.gitea/workflows/validate.yaml
with:
config_path: config.json