diff --git a/src/lib.ts b/src/lib.ts index 24cfc5e52..483753855 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -51,13 +51,14 @@ 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' + ...configuration } + // 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)