Welcome to mirror list, hosted at ThFree Co, Russian Federation.

find-inactive-tsc.yml « workflows « .github - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 76190f1deb6943545d66dd498206969e64ad9b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Find inactive TSC members

on:
  schedule:
    # Run every Tuesday 12:05 AM UTC.
    - cron: '5 0 * * 2'

  workflow_dispatch:

env:
  NODE_VERSION: lts/*

jobs:
  find:
    if: github.repository == 'nodejs/node'
    runs-on: ubuntu-latest

    steps:
      - name: Checkout the repo
        uses: actions/checkout@v2

      - name: Clone nodejs/TSC repository
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
          repository: nodejs/TSC
          path: .tmp

      - name: Use Node.js ${{ env.NODE_VERSION }}
        uses: actions/setup-node@v2
        with:
          node-version: ${{ env.NODE_VERSION }}

      - name: Find inactive TSC members
        run: tools/find-inactive-tsc.mjs >> $GITHUB_ENV

      - 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 <github-bot@iojs.org>
          branch: actions/inactive-tsc
          body: |
            This PR was generated by tools/find-inactive-tsc.yml.

            @nodejs/tsc ${{ env.INACTIVE_TSC_HANDLES }}

            ${{ env.DETAILS_FOR_COMMIT_BODY }}
          commit-message: "meta: move one or more TSC members to emeritus"
          labels: meta
          title: "meta: move one or more TSC members to emeritus"