From ad0d2159452e7b3df4e005edf04d0389eb9dcb31 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Thu, 8 Oct 2026 21:09:17 +0000 Subject: [PATCH] ci: PR checks with central-config validation --- .gitea/workflows/pr.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/pr.yaml diff --git a/.gitea/workflows/pr.yaml b/.gitea/workflows/pr.yaml new file mode 100644 index 0000000..0d096b9 --- /dev/null +++ b/.gitea/workflows/pr.yaml @@ -0,0 +1,28 @@ +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