From 3fdd23f5f84ad25dcbedbcaea9e02240a9ac1b14 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Fri, 3 Feb 2023 12:21:10 +0100 Subject: [PATCH] Update daily.yaml Signed-off-by: Kjeld Schouten-Lebbing --- .github/workflows/daily.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml index f00767c14b7..b83d4c2057a 100644 --- a/.github/workflows/daily.yaml +++ b/.github/workflows/daily.yaml @@ -1,8 +1,17 @@ name: "Chore: Daily Tasks" on: + schedule: + - cron: '0 0 * * *' workflow_dispatch: +permissions: + issues: write + pull-requests: write + +concurrency: + group: lock + jobs: generate-readme: runs-on: ubuntu-latest @@ -264,3 +273,18 @@ jobs: git add --all git commit -sm "Commit released docs for TrueCharts" || exit 0 git push + + lock-threads: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v4 + with: + github-token: ${{ secrets.BOT_TOKEN }} + issue-inactive-days: '7' + exclude-any-issue-labels: '' + issue-comment: 'This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists' + issue-lock-reason: '' + pr-inactive-days: '7' + pr-comment: 'This PR is locked to prevent necro-posting on closed PRs. Please create a issue or contact staff on discord if you want to further discuss this' + pr-lock-reason: 'resolved' + log-output: true