Skip to content

Commit

Permalink
Only add default for base branch in the action
Browse files Browse the repository at this point in the history
  • Loading branch information
yassine-cc committed Sep 27, 2024
1 parent e624536 commit a1dee5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ inputs:
pr-base:
description: >-
The base branch to create the PR on.
default: main
required: false
pr-branch:
description: >-
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33649,7 +33649,7 @@ class Config {
os: core.getInput("os") || "windows",
version: core.getInput("version") || "latest",
createPR,
prBase: createPR ? core.getInput("pr-base") : "",
prBase: createPR ? core.getInput("pr-base") || "main" : "",
prBranch: createPR ? core.getInput("pr-branch") : "",
prTitle: createPR ? core.getInput("pr-title") : "",
prTestFilename: createPR ? core.getInput("pr-test-filename") : "",
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Config {
os: core.getInput("os") || "windows",
version: core.getInput("version") || "latest",
createPR,
prBase: createPR ? core.getInput("pr-base") : "",
prBase: createPR ? core.getInput("pr-base") || "main" : "",
prBranch: createPR ? core.getInput("pr-branch") : "",
prTitle: createPR ? core.getInput("pr-title") : "",
prTestFilename: createPR ? core.getInput("pr-test-filename") : "",
Expand Down

0 comments on commit a1dee5e

Please sign in to comment.