Skip to content

Commit e6d003d

Browse files
committed
Deploy Production Code for Commit 95ad738 πŸš€
1 parent 95ad738 commit e6d003d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2264
-1112
lines changed

β€Žlib/constants.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface ActionInterface {
5353
/** The minimum required values to run the action as a node module. */
5454
export interface NodeActionInterface {
5555
/** The branch that the action should deploy to. */
56-
branch: string;
56+
branch?: string;
5757
/** The folder to deploy. */
5858
folder: string;
5959
/** The repository path, for example JamesIves/github-pages-deploy-action. */

β€Žlib/lib.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ function run(configuration) {
4848
❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions
4949
πŸ”§ Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues`);
5050
(0, core_1.info)('Checking configuration and starting deployment… 🚦');
51-
const settings = Object.assign({}, configuration);
51+
const settings = Object.assign(Object.assign({}, configuration), {
52+
// Set the default branch for Node configurations
53+
branch: !(0, util_1.isNullOrUndefined)(configuration.branch)
54+
? configuration.branch
55+
: 'gh-pages' });
5256
// Defines the repository/folder paths and token types.
5357
// Also verifies that the action has all of the required parameters.
5458
settings.folderPath = (0, util_1.generateFolderPath)(settings);

β€Žlib/util.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ActionInterface } from './constants';
2-
export declare const isNullOrUndefined: (value: unknown) => boolean;
2+
export declare const isNullOrUndefined: (value: unknown) => value is "" | null | undefined;
33
export declare const generateTokenType: (action: ActionInterface) => string;
44
export declare const generateRepositoryPath: (action: ActionInterface) => string;
55
export declare const generateFolderPath: (action: ActionInterface) => string;

β€Žnode_modules/@actions/core/README.md

+24-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/@actions/core/lib/core.d.ts

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/@actions/core/lib/core.js

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/@actions/core/lib/core.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/@actions/core/lib/oidc-utils.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/@actions/core/lib/oidc-utils.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/@actions/core/lib/path-utils.d.ts

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)