From 655f40cb55b55141c63c3dfa09eaa82ec7ea9002 Mon Sep 17 00:00:00 2001 From: MAGIC Date: Wed, 14 Jul 2021 17:59:59 +0200 Subject: [PATCH] [GH-Actions][stale] Upgrade to v4 and run workflow on comments too --- .github/workflows/close_old_issues_and_prs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/close_old_issues_and_prs.yml b/.github/workflows/close_old_issues_and_prs.yml index 5b86aed1..f9630618 100644 --- a/.github/workflows/close_old_issues_and_prs.yml +++ b/.github/workflows/close_old_issues_and_prs.yml @@ -2,8 +2,9 @@ name: 'Close stale issues and PRs' on: schedule: # Once every day at midnight UTC - - cron: "0 0 * * *" - workflow_dispatch: + - cron: "0 0 * * *" + workflow_dispatch: # Allow to run workflow manually + issue_comment: # Run workflow on comments jobs: stale: @@ -13,7 +14,7 @@ jobs: pull-requests: write steps: - name: Mark/Close Stale Issues and Pull Requests 🗑️ - uses: actions/stale@v3 + uses: actions/stale@v4 with: repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-stale: 60