Skip to content

Commit 01b1946

Browse files
targosBethGriggs
authored andcommitted
build: only lint version numbers for pull requests
Fixes: #39850 PR-URL: #40027 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 7ee3fbd commit 01b1946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/linters.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Environment Information
5454
run: npx envinfo
5555
- name: Get release version numbers
56-
if: ${{ github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch }}
56+
if: ${{ github.event.pull_request && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch }}
5757
id: get-released-versions
5858
run: ./tools/node-lint-md-cli-rollup/src/list-released-versions-from-changelogs.mjs
5959
- name: Lint docs

0 commit comments

Comments
 (0)