We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78379c7 + 739329c commit 2323e01Copy full SHA for 2323e01
src/lib.ts
@@ -51,13 +51,14 @@ export default async function run(
51
52
const settings: ActionInterface = {
53
...action,
54
- ...configuration,
55
- // Set the default branch for Node configurations
56
- branch: !isNullOrUndefined(configuration.branch)
57
- ? configuration.branch
58
- : 'gh-pages'
+ ...configuration
59
}
60
+ // Sets the branch to the default value if it's not defined
+ settings.branch = !isNullOrUndefined(settings.branch)
+ ? settings.branch
+ : 'gh-pages'
61
+
62
// Defines the repository/folder paths and token types.
63
// Also verifies that the action has all of the required parameters.
64
settings.folderPath = generateFolderPath(settings)
0 commit comments