Skip to content

Commit 920cbb3

Browse files
committed
Deploy Production Code for Commit 2323e01 🚀
1 parent 2323e01 commit 920cbb3

File tree

113 files changed

+1643
-630
lines changed

Some content is hidden

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

113 files changed

+1643
-630
lines changed

lib/constants.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ const core_1 = require("@actions/core");
2828
const github = __importStar(require("@actions/github"));
2929
const util_1 = require("./util");
3030
const { pusher, repository } = github.context.payload;
31-
/* Flags to signal different scenarios to test cases */
31+
/*
32+
* Flags to signal different scenarios to test cases
33+
*/
3234
var TestFlag;
3335
(function (TestFlag) {
3436
TestFlag[TestFlag["NONE"] = 0] = "NONE";

lib/lib.d.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { ActionInterface, NodeActionInterface } from './constants';
2-
/** Initializes and runs the action.
3-
*
4-
* @param {object} configuration - The action configuration.
2+
/**
3+
* Initializes and runs the action.
54
*/
6-
export default function run(configuration: ActionInterface | NodeActionInterface): Promise<void>;
5+
export default function run(configuration?: ActionInterface | NodeActionInterface): Promise<void>;

lib/lib.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ const constants_1 = require("./constants");
1515
const git_1 = require("./git");
1616
const ssh_1 = require("./ssh");
1717
const util_1 = require("./util");
18-
/** Initializes and runs the action.
19-
*
20-
* @param {object} configuration - The action configuration.
18+
/**
19+
* Initializes and runs the action.
2120
*/
2221
function run(configuration) {
2322
return __awaiter(this, void 0, void 0, function* () {
@@ -49,11 +48,11 @@ function run(configuration) {
4948
❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions
5049
🔧 Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues`);
5150
(0, core_1.info)('Checking configuration and starting deployment… 🚦');
52-
const settings = Object.assign(Object.assign({}, configuration), {
53-
// Set the default branch for Node configurations
54-
branch: !(0, util_1.isNullOrUndefined)(configuration.branch)
55-
? configuration.branch
56-
: 'gh-pages' });
51+
const settings = Object.assign(Object.assign({}, constants_1.action), configuration);
52+
// Sets the branch to the default value if it's not defined
53+
settings.branch = !(0, util_1.isNullOrUndefined)(settings.branch)
54+
? settings.branch
55+
: 'gh-pages';
5756
// Defines the repository/folder paths and token types.
5857
// Also verifies that the action has all of the required parameters.
5958
settings.folderPath = (0, util_1.generateFolderPath)(settings);

lib/main.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
return (mod && mod.__esModule) ? mod : { "default": mod };
44
};
55
Object.defineProperty(exports, "__esModule", { value: true });
6-
const constants_1 = require("./constants");
76
const lib_1 = __importDefault(require("./lib"));
8-
// Runs the action within the GitHub actions environment.
9-
(0, lib_1.default)(constants_1.action);
7+
(0, lib_1.default)();

node_modules/@eslint-community/regexpp/index.d.ts

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

0 commit comments

Comments
 (0)