fix(ci): fix YAML parse error in update-manifest step
Multi-line python3 -c "..." with zero-indented Python code caused Gitea to fail parsing the workflow YAML (line 188: could not find expected ':'). Replace with jq which handles variable interpolation in a single line. This was silently breaking every push-triggered workflow run. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -184,21 +184,13 @@ jobs:
|
|||||||
VERSION=$(echo "$RELEASE" | python3 -c "import sys,json; print(json.load(sys.stdin)['name'].split()[-1])")
|
VERSION=$(echo "$RELEASE" | python3 -c "import sys,json; print(json.load(sys.stdin)['name'].split()[-1])")
|
||||||
DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||||
|
|
||||||
python3 -c "
|
jq -n \
|
||||||
import json, sys
|
--arg version "$VERSION" \
|
||||||
manifest = {
|
--arg date "$DATE" \
|
||||||
'version': '$VERSION',
|
--arg url "$BASE/LotusChat-x86_64-setup.nsis.zip" \
|
||||||
'notes': 'Latest Lotus Chat release',
|
--arg sig "$WIN_SIG" \
|
||||||
'pub_date': '$DATE',
|
'{"version":$version,"notes":"Latest Lotus Chat release","pub_date":$date,"platforms":{"windows-x86_64":{"url":$url,"signature":$sig}}}' \
|
||||||
'platforms': {
|
> release.json
|
||||||
'windows-x86_64': {
|
|
||||||
'url': '$BASE/LotusChat-x86_64-setup.nsis.zip',
|
|
||||||
'signature': '''$WIN_SIG'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
print(json.dumps(manifest, indent=2))
|
|
||||||
" > release.json
|
|
||||||
|
|
||||||
cat release.json
|
cat release.json
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user