From 28990548760b16dd7c85a818028523d586cb89af Mon Sep 17 00:00:00 2001 From: cxfksword <718792+cxfksword@users.noreply.github.com> Date: Sat, 12 Nov 2022 11:47:13 +0800 Subject: [PATCH] Update github action --- .github/workflows/issue_close_inactive.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/issue_close_inactive.yml diff --git a/.github/workflows/issue_close_inactive.yml b/.github/workflows/issue_close_inactive.yml new file mode 100644 index 0000000..be382ef --- /dev/null +++ b/.github/workflows/issue_close_inactive.yml @@ -0,0 +1,20 @@ +name: Close inactive + +on: + schedule: + - cron: "0 0 */7 * *" + workflow_dispatch: + +jobs: + close-inactive: + runs-on: ubuntu-latest + steps: + - name: close-issues + uses: actions-cool/issues-helper@v3 + with: + actions: "close-issues" + token: ${{ secrets.GITHUB_TOKEN }} + inactive-day: 30 + close-reason: "not_planned" + body: | + This issue was closed due to inactive more than 30 days. You can reopen or recreate it if you think it should continue.