diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2021-03-16 19:00:20 +0300 |
---|---|---|
committer | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2021-03-17 01:02:29 +0300 |
commit | 901ef1bcfcfef570003fade7eaf4506b5634ca88 (patch) | |
tree | d75a0e68c87cbc4124cefefe80d82e13b750183b /.github | |
parent | 3bba40abc636ff50b03930cb510f7d1082272563 (diff) |
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: https://github.com/nodejs/node/pull/37767
PR-URL: https://github.com/nodejs/node/pull/37768
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com>
Reviewed-By: Ruy Adorno <ruyadorno@github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/linters.yml | 1 |
1 files changed, 1 insertions, 0 deletions
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 |