Fix the release workflow failing to parse; check workflows in CI
CI / test (push) Successful in 3m26s
CI / test (push) Successful in 3m26s
The "Show image" step's run line was a plain YAML scalar containing ": ", which Gitea's parser rejects, so v0.8.1's release never ran. It's a block scalar now, and CI parses every workflow file so a broken release.yml fails on master before anything is tagged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a24cf5ac3c
commit
77f21a4734
2 files changed
+14
-1
No files matched your search
@@ -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 Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
|
||||
@@ -29,4 +29,5 @@ jobs:
|
||||
env:
|
||||
TAGS: ${{ steps.image.outputs.tags }}
|
||||
DIGEST: ${{ steps.image.outputs.digest }}
|
||||
run: printf 'tags: %s\ndigest: %s\n' "$TAGS" "$DIGEST"
|
||||
run: |
|
||||
printf 'tags: %s\ndigest: %s\n' "$TAGS" "$DIGEST"
|
||||
Reference in new issue
Block a user