diff options
author | Rich Trott <rtrott@gmail.com> | 2021-07-12 19:22:27 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-07-14 14:35:00 +0300 |
commit | 1bb660e2e0152f466682e5897aedd494d666ca4a (patch) | |
tree | aad1c0e3939c154815976746a642a9f6dcd90dd7 /.github | |
parent | 4292264c51134fd9e3527031823a16eb1c04bcb7 (diff) |
tools: change commit fetch limiting in find-inactive-collaborators
GitHub Action workflows can be told to clone a certain number of commits
or else everything. Change find-inactive-collaborators to take a number
of commits to examine rather than a date range so that the parameter can
be used in GitHub Actions.
PR-URL: https://github.com/nodejs/node/pull/39362
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/find-inactive-collaborators.yml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/find-inactive-collaborators.yml b/.github/workflows/find-inactive-collaborators.yml index b975fb34030..45b3a8cebcd 100644 --- a/.github/workflows/find-inactive-collaborators.yml +++ b/.github/workflows/find-inactive-collaborators.yml @@ -7,6 +7,10 @@ on: workflow_dispatch: +env: + NODE_VERSION: 16.x + NUM_COMMITS: 5000 + jobs: find: @@ -14,11 +18,13 @@ jobs: steps: - uses: actions/checkout@v2 - - - name: Install Node.js + with: + fetch-depth: ${{ env.NUM_COMMITS }} + + - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v2 with: - node-version: 16.x + node-version: ${{ env.NODE_VERSION }} - name: Find inactive collaborators - run: tools/find-inactive-collaborators.mjs '1 year ago' + run: tools/find-inactive-collaborators.mjs ${{ env.NUM_COMMITS }} |