Skip to content

Commit 5777de9

Browse files
committed
test: baseCommittish on pulls uses GITHUB_REF_NAME
1 parent 76ed6b5 commit 5777de9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/validate-input.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function validateInputAndSetConfig(): Config {
9999
const baseCommittish = isOnPullRequest
100100
? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
101101
process.env.GITHUB_BASE_REF!
102-
: headCommittish
102+
: process.env.GITHUB_REF_NAME!
103103

104104
// core.getInput() always returns a string, so nullish coalescing operator does not work.
105105
const openapiFilePath =

0 commit comments

Comments
 (0)