From c64fe07eb2fd68f0ab86ebc143a4c3ffa4afc4c2 Mon Sep 17 00:00:00 2001 From: Aabishkar KC Date: Tue, 7 Nov 2023 10:05:32 -0500 Subject: [PATCH] Update close stale issues workflow (#14577) * Update close stale issues workflow - update summary step * Update close stale issues workflow --- .github/workflows/close_stale_issues.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/close_stale_issues.yml b/.github/workflows/close_stale_issues.yml index 163881dbcb9..4a03b5870f2 100644 --- a/.github/workflows/close_stale_issues.yml +++ b/.github/workflows/close_stale_issues.yml @@ -17,8 +17,10 @@ jobs: days-before-close: 0 only-labels: needs more info close-issue-message: Given that there has been no additional information added, this issue will be closed for now. Please reopen and provide additional information if you wish the Dynamo team to investigate further. - - name: Summary + - name: Summary # Print markdown list of closed issues or "No Issues" message if no issues were closed + env: + ISSUES_URL: ${{ format('{0}/{1}/issues', github.server_url, github.repository) }} + CLOSED_ISSUES: ${{ steps.close_issues.outputs.closed-issues-prs }} run: | - echo "# Closed Issues" >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo "${{ steps.close_issues.outputs.closed-issues-prs }}" >> $GITHUB_STEP_SUMMARY + echo '# Closed Issues' >> $GITHUB_STEP_SUMMARY + echo '${{ env.CLOSED_ISSUES }}' | jq --raw-output ' if (. == []) then "- No Issues." else .[] | "- \(.title) - [#\(.number)](\(${{ env.ISSUES_URL }})/\(.number))" end' >> $GITHUB_STEP_SUMMARY