From 7d26d36cb1e0fc91d8292bd638e32aa027b89100 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 --- .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 987a38e56165fe..ba483778af2455 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