From ab1e83de25e9910eda868909638a097567373be8 Mon Sep 17 00:00:00 2001 From: James Ives Date: Mon, 2 Sep 2024 11:49:14 -0400 Subject: [PATCH] Update lib.ts --- src/lib.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib.ts b/src/lib.ts index 24cfc5e52..759dc9662 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -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)