From 01b1946b382a8a4dbc2074c90411c080887e6a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 7 Sep 2021 12:38:54 +0200 Subject: [PATCH] build: only lint version numbers for pull requests Fixes: https://github.com/nodejs/node/issues/39850 PR-URL: https://github.com/nodejs/node/pull/40027 Reviewed-By: Antoine du Hamel Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- .github/workflows/linters.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index f15872bbc22b09..04cecbbc516052 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -53,7 +53,7 @@ jobs: - name: Environment Information run: npx envinfo - name: Get release version numbers - if: ${{ github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch }} + if: ${{ github.event.pull_request && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch }} id: get-released-versions run: ./tools/node-lint-md-cli-rollup/src/list-released-versions-from-changelogs.mjs - name: Lint docs