From fc428732960e9d48b092515384e521cef3346c0a Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 9 Jul 2022 20:41:03 +0900 Subject: [PATCH] add reactivation step --- .github/workflows/stale.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 2e5f7e7..c7e8054 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,6 +1,8 @@ name: stale on: - schedule: [cron: "0 1 * * 1"] + workflow_dispatch: + schedule: + - cron: "0 1 * * MON" jobs: main: runs-on: ubuntu-latest @@ -9,3 +11,9 @@ jobs: with: stale-issue-message: このIssueは最終更新日から365日以上経過しています。 days-before-stale: 365 + - name: Reactivation + run: | + gh workflow disable --repo "${GITHUB_REPOSITORY}" "${GITHUB_WORKFLOW}" + gh workflow enable --repo "${GITHUB_REPOSITORY}" "${GITHUB_WORKFLOW}" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}