Skip to content

Commit

Permalink
Update lib.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Sep 2, 2024
1 parent 52f022e commit ab1e83d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ export default async function run(
const settings: ActionInterface = {
...action,
...configuration,
// Set the default branch for Node configurations
branch: !isNullOrUndefined(configuration.branch)
? configuration.branch
: 'gh-pages'
}

// Sets the branch to the default value if it's not defined
settings.branch = !isNullOrUndefined(settings.branch)
? settings.branch
: 'gh-pages'

// Defines the repository/folder paths and token types.
// Also verifies that the action has all of the required parameters.
settings.folderPath = generateFolderPath(settings)
Expand Down

0 comments on commit ab1e83d

Please sign in to comment.