← Commit history

promote.sh stamps 'Promoted to public on <date>' into the release notes (pup-bridge#87 item 2)

John Lauer ·6738513c60 ·1mo ago ·parent 7234df2
1 file changed +5
tools/promote.sh+5
@@ -80,6 +80,11 @@ if os.path.exists(path): PY ( cd dist/insiders-repo && adom-wiki repo push adom/insiders --files pup-bridge/README.md -m "pup-bridge ${VER}: promoted to public — ${BY}" >/dev/null 2>&1 ) || echo "   (insiders release-log push failed; the public promote continues)" +echo "== 3b. stamp the release notes on the product page (pattern: 'Promoted to public on <date>') =="+NOTES=$(adom-wiki release view "$PUBLIC" "$VER" --json 2>/dev/null | python3 -c "import sys,json; raw=sys.stdin.read(); i=raw.find('{'); d=json.loads(raw[i:]) if i>=0 else {}; r=d.get('data') or d; r=r.get('release') or r; print((r.get('changelog') or '').strip())" 2>/dev/null || true)+case "$NOTES" in *"Promoted to public"*) echo "   release notes already stamped";; *)+  adom-wiki release edit "$PUBLIC" "$VER" --changelog "${NOTES:+$NOTES }Promoted to public on $(date -u +%Y-%m-%d)." >/dev/null 2>&1 && echo "   release notes stamped" || echo "   (release notes stamp failed; promote continues)";; esac+ echo "== 3. push the public manifest ==" adom-wiki repo push "$PUBLIC" --files adom-bridge-puppeteer-manifest.json \   -m "v${VER}: promoted to PUBLIC — ${BY}: ${A}" >/dev/null 2>&1 || {