From f282065536501e4472bad6ebb419eb3298a0c79b Mon Sep 17 00:00:00 2001 From: Mateusz Pstrucha Date: Fri, 2 Oct 2026 21:08:35 +0200 Subject: [PATCH] Check workflow files parse in CI Gitea rejects an unparsable workflow without running anything, which for release.yml only surfaces when a tag is pushed. Parsing them all in CI catches it on master first. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f5d2ca0..3a02e43 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -19,6 +19,18 @@ jobs: - name: Check out source uses: actions/checkout@v4 + # Gitea rejects a workflow file it can't parse without running + # anything, which for release.yml only shows up when a tag is pushed. + # Parsing them all here catches that on master, before tagging. + - name: Check workflow files parse + run: | + python3 - <<'PY' + import glob, yaml + for f in sorted(glob.glob(".gitea/workflows/*.yml")): + yaml.safe_load(open(f)) + print("ok", f) + PY + - name: Set up JDK uses: actions/setup-java@v4 with: