From 901ef1bcfcfef570003fade7eaf4506b5634ca88 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 16 Mar 2021 17:00:20 +0100 Subject: [PATCH] tools: parse changelogs only in the default branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `lint-md` job on GitHub Actions parses the changelogs to determine if the version numbers referenced in the YAML comments in the docs match actual releases of Node.js. Changelogs are sometimes not backported to release branches; this commit disables changelog parsing on branches other than the default one. Refs: https://github.com/nodejs/node/pull/37767 PR-URL: https://github.com/nodejs/node/pull/37768 Reviewed-By: Michaƫl Zasso Reviewed-By: Danielle Adams Reviewed-By: Ruy Adorno --- .github/workflows/linters.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index e9a46ca3176..1b0f8c868db 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.repo.default_branch }} id: get-released-versions run: ./tools/node-lint-md-cli-rollup/src/list-released-versions-from-changelogs.mjs - name: Lint docs