From 78cadd7991a3a29a0b76f7ad2c6cbac1b206f129 Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 9 Oct 2023 10:10:02 +0200 Subject: [PATCH] ci: use reusable stale bot workflow --- .github/workflows/bot_stale.yml | 19 ------------------- .github/workflows/stale.yml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 19 deletions(-) delete mode 100644 .github/workflows/bot_stale.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/bot_stale.yml b/.github/workflows/bot_stale.yml deleted file mode 100644 index a66179e8..00000000 --- a/.github/workflows/bot_stale.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: "Close stale issues" -on: - schedule: - - cron: "30 12 * * *" -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v8 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.' - exempt-issue-label: 'pinned' - stale-issue-label: 'stale' - stale-pr-message: 'This PR has been marked as stale because it has not had recent activity. The bot will close the PR if no further action occurs.' - exempt-pr-label: 'pinned' - stale-pr-label: 'stale' - days-before-stale: 90 - days-before-close: 30 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..d9410ae9 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,13 @@ +name: Close stale issues + +on: + schedule: + - cron: "30 12 * * *" + +jobs: + stale: + permissions: + issues: write + pull-requests: write + + uses: hetznercloud/.github/.github/workflows/stale.yml@main