Skip to content

Commit e2f9304

Browse files
committed
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: #37767
1 parent 3bba40a commit e2f9304

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.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)