From a451f69a1528a65dcd7823200a82bae85ca9f0ac Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Thu, 10 Sep 2026 06:40:11 +0200 Subject: [PATCH] maintenance-private-packages: also render the table on the run summary The job only ever wrote the private-package table into the tracking issue; the workflow run's own Summary tab stayed blank. Add a step that appends the same body (or an all-clear line when nothing is private) to $GITHUB_STEP_SUMMARY, so a manual workflow_dispatch run shows the result without opening the issue. Signed-off-by: Igor Pecovnik --- .../workflows/maintenance-private-packages.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/maintenance-private-packages.yml b/.github/workflows/maintenance-private-packages.yml index ebae976..a6bd66e 100644 --- a/.github/workflows/maintenance-private-packages.yml +++ b/.github/workflows/maintenance-private-packages.yml @@ -126,6 +126,21 @@ jobs: cat issue-body.md + # Also surface the result on the run's own Summary tab, so a manual + # (workflow_dispatch) run shows the table without opening the issue. + - name: Render run summary + env: + COUNT: ${{ steps.list.outputs.count }} + run: | + set -euo pipefail + if [[ "${COUNT}" -eq 0 ]]; then + echo "## ✅ No private packages in \`${WATCH_PREFIXES}\`" >> "$GITHUB_STEP_SUMMARY" + else + echo "## ${COUNT} private package(s) in \`${WATCH_PREFIXES}\`" >> "$GITHUB_STEP_SUMMARY" + echo >> "$GITHUB_STEP_SUMMARY" + cat issue-body.md >> "$GITHUB_STEP_SUMMARY" + fi + - name: Open, update or close the tracking issue env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}