Find inactive collaborators #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Find inactive collaborators | |
on: | |
schedule: | |
# Run on the 15th day of the month at 4:05 AM UTC. | |
- cron: '5 4 15 * *' | |
workflow_dispatch: | |
env: | |
NODE_VERSION: 16.x | |
NUM_COMMITS: 5000 | |
jobs: | |
find: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: ${{ env.NUM_COMMITS }} | |
- name: Use Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Find inactive collaborators | |
run: tools/find-inactive-collaborators.mjs ${{ env.NUM_COMMITS }} | |
- name: Open pull request | |
uses: gr2m/create-or-update-pull-request-action@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }} | |
with: | |
author: Node.js GitHub Bot <[email protected]> | |
body: This PR was generated by tools/find-inactive-collaborators.yml. | |
commit-message: "meta: move one or more collaborators to emeritus" | |
labels: meta | |
title: "meta: move one or more collaborators to emeritus" |