Skip to content

Commit 72af5d9

Browse files
aduh95danielleadams
authored andcommitted
tools: parse changelogs only in the default branch
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: #37767 PR-URL: #37768 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Danielle Adams <adamzdanielle@gmail.com> Reviewed-By: Ruy Adorno <ruyadorno@github.com>
1 parent 89f3aa9 commit 72af5d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/linters.yml

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
- name: Environment Information
5252
run: npx envinfo
5353
- name: Get release version numbers
54+
if: ${{ github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch }}
5455
id: get-released-versions
5556
run: ./tools/node-lint-md-cli-rollup/src/list-released-versions-from-changelogs.mjs
5657
- name: Lint docs

0 commit comments

Comments
 (0)