From 2a21a8f6da2820a6eafac0d7c43965607bed3524 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Thu, 16 Mar 2023 11:09:35 +0100 Subject: [PATCH] Run all-contributor check daily --- .github/workflows/daily.yaml | 38 ++++++++++++++++++++++++++++-------- package.json | 4 ++++ 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml index fa2a106467a..608cc325ac9 100644 --- a/.github/workflows/daily.yaml +++ b/.github/workflows/daily.yaml @@ -2,7 +2,7 @@ name: "Chore: Daily Tasks" on: schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" workflow_dispatch: permissions: @@ -355,11 +355,33 @@ jobs: - uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836 # 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' + 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 + + check contributors: + name: Build & Deploy + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 + with: + token: ${{ secrets.BOT_TOKEN }} + fetch-depth: 1 + + - uses: actions/setup-node@v3 + with: + node-version: 18 + + - uses: borales/actions-yarn@v4.2.0 + with: + cmd: install --frozen-lockfile + + - name: List missing and unknown contributors + run: | + awk -F', ' '{ for( i=1; i<=NF; i++ ) print $i }' <<<$(yarn all-contributors check) diff --git a/package.json b/package.json index d94970ba0cc..8dd7ced4fc8 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,9 @@ { "devDependencies": { "all-contributors-cli": "6.24.0" + }, + "scripts": { + "contributors:add": "all-contributors add", + "contributors:generate": "all-contributors generate" } }