build: run some workflows only on nodejs/node

This updates the close-stalled, comment-stalled and license-builder
workflows to skip them on repositories that are not nodejs/node.

PR-URL: https://github.com/nodejs/node/pull/36507
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
pull/36507/head
Michaël Zasso 2020-12-14 08:25:15 +01:00 committed by Rich Trott
parent 565663e046
commit daa132260d
3 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ on:
jobs:
stale:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3

View File

@ -7,6 +7,7 @@ on:
jobs:
staleComment:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
- name: Post comment

View File

@ -7,7 +7,8 @@ on:
workflow_dispatch:
jobs:
update_routes:
update_license:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2