diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 437c7de..8d10ce4 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 Node.js uses: actions/setup-node@v4 with: