From 95c80f5fb0668d11260abd43edbc3b15266391af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Mon, 14 Dec 2020 08:25:15 +0100 Subject: [PATCH] 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 Reviewed-By: Anna Henningsen Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Rich Trott --- .github/workflows/close-stalled.yml | 1 + .github/workflows/comment-stalled.yml | 1 + .github/workflows/license-builder.yml | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/close-stalled.yml b/.github/workflows/close-stalled.yml index 1834d3ac2e6815..916baf0463fa6c 100644 --- a/.github/workflows/close-stalled.yml +++ b/.github/workflows/close-stalled.yml @@ -5,6 +5,7 @@ on: jobs: stale: + if: github.repository == 'nodejs/node' runs-on: ubuntu-latest steps: - uses: actions/stale@v3 diff --git a/.github/workflows/comment-stalled.yml b/.github/workflows/comment-stalled.yml index 62bd26f39eb72d..1c21505c4ad317 100644 --- a/.github/workflows/comment-stalled.yml +++ b/.github/workflows/comment-stalled.yml @@ -7,6 +7,7 @@ on: jobs: staleComment: + if: github.repository == 'nodejs/node' runs-on: ubuntu-latest steps: - name: Post comment diff --git a/.github/workflows/license-builder.yml b/.github/workflows/license-builder.yml index 714aeb1c1499d5..115bef9977d9d5 100644 --- a/.github/workflows/license-builder.yml +++ b/.github/workflows/license-builder.yml @@ -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