From 8eee7f9a1a84af52fb9e3b8be7da022372e14fb9 Mon Sep 17 00:00:00 2001 From: Benjamin Brummer Date: Tue, 30 Sep 2025 10:45:16 +0200 Subject: [PATCH] Fix Unexpected input(s) 'stale-label', 'only-issues' --- .github/workflows/auto-close-issues.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/auto-close-issues.yml b/.github/workflows/auto-close-issues.yml index f767895..fa24e30 100644 --- a/.github/workflows/auto-close-issues.yml +++ b/.github/workflows/auto-close-issues.yml @@ -1,21 +1,19 @@ name: Close stale issues after 5 days - on: schedule: - # Run this workflow every day at midnight - - cron: '0 0 * * *' + - cron: "'0 0 * * *'" jobs: - close-stale-issues: + close-issues: runs-on: ubuntu-latest + permissions: + issues: write steps: - - name: Close stale issues - uses: actions/stale@v7 + - uses: actions/stale@v10 with: + days-before-issue-stale: 4 + days-before-issue-close: 1 + stale-issue-label: "stale" + close-issue-message: "This issue has been automatically closed due to inactivity for 5 days." repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: "This issue has been automatically closed due to inactivity for 5 days." - days-before-stale: 4 # Number of days before marking an issue as stale - days-before-close: 1 # Number of days after being marked stale before closing - stale-label: "stale" # Label to add to stale issues - exempt-issue-labels: "keep-open,triage,bug" # Prevents issues with this label from being closed - only-issues: true # Only affects issues, not pull requests + exempt-issue-labels: "keep-open,triage,bug"