From c7b93fb0486165c4bd4d4c40a7fed67c66b70186 Mon Sep 17 00:00:00 2001 From: Umberto Baldi Date: Wed, 1 Dec 2021 11:32:42 +0100 Subject: [PATCH] [skip-changelog] fix and update Close stale issue workflow --- .github/workflows/close-stale-issues.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml index 3261e030d..d62341f3a 100644 --- a/.github/workflows/close-stale-issues.yml +++ b/.github/workflows/close-stale-issues.yml @@ -1,17 +1,21 @@ name: Close stale issues on: + workflow_dispatch: schedule: - cron: '30 8 * * mon' +permission: + issues: write + jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v3 + - uses: actions/stale@v4 with: - stale-issue-message: 'This issue has been marked as stale because it has been open 14 days with no activity. Remove **status: stale** label or comment, otherwise it will be closed in 7 days ' - close-issue-label: 'status: stale' - close-issue-message: 'This issue has been closed becasue has been stale for 7 days. If you think this issue deserves some attention feel free to reopen it' + stale-issue-message: 'This issue has been marked as stale because it has been open for more than 14 days with no activity. Remove stale label or comment, otherwise it will be closed in 7 days ' + stale-issue-label: 'status: stale' + close-issue-message: 'This issue has been closed becasue has been stale for more than 7 days. If you think this issue deserves some attention feel free to reopen it' close-issue-label: 'conclusion: stale' days-before-stale: 14 days-before-close: 7