Skip to content

Commit ab1e83d

Browse files
committed
Update lib.ts
1 parent 52f022e commit ab1e83d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ export default async function run(
5252
const settings: ActionInterface = {
5353
...action,
5454
...configuration,
55-
// Set the default branch for Node configurations
56-
branch: !isNullOrUndefined(configuration.branch)
57-
? configuration.branch
58-
: 'gh-pages'
5955
}
6056

57+
// Sets the branch to the default value if it's not defined
58+
settings.branch = !isNullOrUndefined(settings.branch)
59+
? settings.branch
60+
: 'gh-pages'
61+
6162
// Defines the repository/folder paths and token types.
6263
// Also verifies that the action has all of the required parameters.
6364
settings.folderPath = generateFolderPath(settings)

0 commit comments

Comments
 (0)