Seed/update .ci pipeline from manifest-updater v1.1.1
This commit is contained in:
+3
-3
@@ -20,16 +20,16 @@ SLUG="$(basename "${GITHUB_REPOSITORY}")"
|
||||
VER="${GITHUB_REF_NAME#v}"
|
||||
MAIN="${SLUG}.php"
|
||||
HOST="${GITHUB_SERVER_URL}"
|
||||
CFG="mu-release.yaml"
|
||||
CFG=".mu-release.yaml"
|
||||
|
||||
# --- config helpers (yaml via python; pure-convention defaults if absent) -----
|
||||
cfg() { python3 - "$1" "$2" <<'PY' 2>/dev/null || true
|
||||
import sys, os
|
||||
key, default = sys.argv[1], sys.argv[2]
|
||||
val = default
|
||||
if os.path.isfile("mu-release.yaml"):
|
||||
if os.path.isfile(".mu-release.yaml"):
|
||||
import yaml
|
||||
data = yaml.safe_load(open("mu-release.yaml")) or {}
|
||||
data = yaml.safe_load(open(".mu-release.yaml")) or {}
|
||||
cur = data
|
||||
for part in key.split("."):
|
||||
cur = cur.get(part) if isinstance(cur, dict) else None
|
||||
|
||||
Reference in New Issue
Block a user