From 2ecfe739f20398d3d1a7f9f91de416b528f9195d Mon Sep 17 00:00:00 2001 From: kkawula Date: Wed, 15 Jan 2025 18:45:10 +0100 Subject: [PATCH] Add logging --- .github/workflows/automate-stale.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/automate-stale.yml b/.github/workflows/automate-stale.yml index 3c3efe5114..1d19e08612 100644 --- a/.github/workflows/automate-stale.yml +++ b/.github/workflows/automate-stale.yml @@ -14,7 +14,9 @@ jobs: permissions: pull-requests: write steps: - - uses: actions/stale@v9 + - name: Run Stale Bot + id: stale-bot + uses: actions/stale@v9 with: # General settings days-before-stale: ${{ env.DAYS_BEFORE_STALE }} @@ -32,3 +34,9 @@ jobs: marking it as stale. It will close in ${{ env.DAYS_BEFORE_CLOSE }} days unless something changes. Thanks for contributing! close-pr-message: false + + - name: Logs + if: ${{ steps.stale-bot.outputs.staled-issues-prs != '' || steps.stale-bot.outputs.closed-issues-prs != '' }} + run: | + echo "Staled PRs: ${{ steps.stale-bot.outputs.staled-issues-prs }}" + echo "Closed PRs: ${{ steps.stale-bot.outputs.closed-issues-prs }}"