From e178da2179244a848e97b4410d6fb02883dc237b Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 26 Aug 2022 10:49:32 +0800 Subject: [PATCH] ci: lock inactive threads after 30 days --- .github/workflows/lock.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/lock.yml diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 00000000..f0213fb3 --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,19 @@ +name: Lock threads + +on: + # Daily + schedule: + - cron: '0 0 * * *' + # Manual trigger + workflow_dispatch: + inputs: + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v3 + with: + github-token: ${{ github.token }} + issue-lock-inactive-days: '30' + pr-lock-inactive-days: '30'