You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ! cargo publish -p "$NAME" --dry-run --all-features --locked --color never 2>&1 | tee "$LOG"; then
527
+
HAS_ISSUES=true
528
+
{
529
+
echo "### \`$NAME\`"
530
+
echo ""
531
+
echo '```text'
532
+
tail -n 120 "$LOG"
533
+
echo '```'
534
+
echo ""
535
+
} >> /tmp/publish-dry-run-issues-body.md
536
+
echo "FAILED: $NAME (see summary artifact for PR)"
537
+
else
538
+
echo "OK: $NAME"
522
539
fi
540
+
rm -f "$LOG"
523
541
done < <(jq -c '.[]' /tmp/api-changes.json)
524
542
525
-
if [ "$HAS_DUPLICATED_DEPS" = "false" ]; then
526
-
echo "No duplicated dependencies found in release crates."
543
+
if [ "$HAS_ISSUES" = "true" ]; then
544
+
{
545
+
echo "## Cargo publish dry-run failures"
546
+
echo ""
547
+
echo "These crates did not pass \`cargo publish --dry-run --all-features --locked\` (dependencies are resolved **as on crates.io**, not via workspace path dependencies)."
548
+
echo ""
549
+
cat /tmp/publish-dry-run-issues-body.md
550
+
} > /tmp/publish-dry-run-summary.md
551
+
echo "has_issues=true" >> "$GITHUB_OUTPUT"
552
+
echo "Publish dry-run found issues; PR will include a summary section."
553
+
else
554
+
echo "has_issues=false" >> "$GITHUB_OUTPUT"
555
+
echo "All publish dry-runs succeeded."
527
556
fi
557
+
558
+
- name: Upload publish dry-run summary for PR body
0 commit comments