fix(ci): eof failure
This commit is contained in:
@@ -60,14 +60,12 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
make package
|
make package
|
||||||
|
|
||||||
artifact_path="$(
|
widget_id="$(python -c 'import json; from pathlib import Path; m=json.loads(Path("package/metadata.json").read_text(encoding="utf-8")); print((m.get("KPlugin") or {}).get("Id") or m.get("Id") or "")')"
|
||||||
python - <<'PY'
|
if [ -z "$widget_id" ]; then
|
||||||
import json
|
echo "::error::Could not resolve widget id from package/metadata.json (expected KPlugin.Id)"
|
||||||
from pathlib import Path
|
exit 1
|
||||||
metadata = json.loads(Path("package/metadata.json").read_text(encoding="utf-8"))
|
fi
|
||||||
print(Path("build") / f"{metadata['Id']}.plasmoid")
|
artifact_path="build/${widget_id}.plasmoid"
|
||||||
PY
|
|
||||||
)"
|
|
||||||
|
|
||||||
if [ ! -f "$artifact_path" ]; then
|
if [ ! -f "$artifact_path" ]; then
|
||||||
echo "::error::Expected plasmoid artifact was not created: $artifact_path"
|
echo "::error::Expected plasmoid artifact was not created: $artifact_path"
|
||||||
|
|||||||
Reference in New Issue
Block a user