From e2f930437b8d1bf9ddc4061f2e0b6e70e8f80bf9 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 16 Mar 2021 17:00:20 +0100 Subject: [PATCH] tools: lint version numbers in doc only in the default branch Changelogs are sometimes not backported to release branches; this check is useful on the `master` branch, not so much in the other branches. Refs: https://github.com/nodejs/node/pull/37767 --- .github/workflows/linters.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index e9a46ca3176780..509274b60e1f6b 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -51,6 +51,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.default_branch }} id: get-released-versions run: ./tools/node-lint-md-cli-rollup/src/list-released-versions-from-changelogs.mjs - name: Lint docs