From 03f5052f5687fc7ec9dfdb2d575f2a18bc0df86a Mon Sep 17 00:00:00 2001 From: Lesords <2385342343@qq.com> Date: Tue, 7 Jan 2025 09:11:14 +0000 Subject: [PATCH] ci: add an action to automatically close stale issues and PRs --- .github/workflows/stale.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..d8e11240 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,25 @@ +name: 'Close stale issues and PRs' + +on: + workflow_dispatch: + schedule: + - cron: '* 4 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Checkout script repository + uses: actions/checkout@v4 + with: + repository: Seeed-Studio/sync-github-all-issues + path: ci + + - name: Run script + run: ./ci/tools/stale.sh + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}