Skip to content

Commit 15de0f0

Browse files
committed
Deploy Production Code for Commit d5dce9b πŸš€
1 parent d5dce9b commit 15de0f0

File tree

2,646 files changed

+28356
-164
lines changed

Some content is hidden

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

2,646 files changed

+28356
-164
lines changed

β€Žlib/git.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ function deploy(action) {
8181
const temporaryDeploymentBranch = `github-pages-deploy-action/${Math.random()
8282
.toString(36)
8383
.substr(2, 9)}`;
84+
const rsyncVersion = (0, util_1.getRsyncVersion)();
85+
const isMkpathSupported = rsyncVersion >= '3.2.3';
8486
(0, core_1.info)('Starting to commit changes…');
8587
try {
8688
const commitMessage = !(0, util_1.isNullOrUndefined)(action.commitMessage)
@@ -114,7 +116,7 @@ function deploy(action) {
114116
Pushes all of the build files into the deployment directory.
115117
Allows the user to specify the root if '.' is provided.
116118
rsync is used to prevent file duplication. */
117-
yield (0, execute_1.execute)(`rsync -q -av --checksum --progress ${action.targetFolder ? '--mkpath' : ''} ${action.folderPath}/. ${action.targetFolder
119+
yield (0, execute_1.execute)(`rsync -q -av --checksum --progress ${isMkpathSupported && action.targetFolder ? '--mkpath' : ''} ${action.folderPath}/. ${action.targetFolder
118120
? `${temporaryDeploymentDirectory}/${action.targetFolder}`
119121
: temporaryDeploymentDirectory} ${action.clean
120122
? `--delete ${excludes} ${!fs_1.default.existsSync(`${action.folderPath}/${constants_1.DefaultExcludedFiles.CNAME}`)

β€Žlib/util.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ export declare const extractErrorMessage: (error: unknown) => string;
3232
* Strips the protocol from a provided URL.
3333
*/
3434
export declare const stripProtocolFromUrl: (url: string) => string;
35+
/**
36+
* Gets the rsync version.
37+
*/
38+
export declare function getRsyncVersion(): string;

β€Žlib/util.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
44
};
55
Object.defineProperty(exports, "__esModule", { value: true });
66
exports.stripProtocolFromUrl = exports.extractErrorMessage = exports.suppressSensitiveInformation = exports.checkParameters = exports.generateFolderPath = exports.generateRepositoryPath = exports.generateTokenType = exports.isNullOrUndefined = void 0;
7+
exports.getRsyncVersion = getRsyncVersion;
78
const core_1 = require("@actions/core");
9+
const child_process_1 = require("child_process");
810
const fs_1 = require("fs");
911
const path_1 = __importDefault(require("path"));
1012
const constants_1 = require("./constants");
@@ -100,3 +102,17 @@ exports.extractErrorMessage = extractErrorMessage;
100102
*/
101103
const stripProtocolFromUrl = (url) => url.replace(/^(?:https?:\/\/)?(?:www\.)?/i, '').split('/')[0];
102104
exports.stripProtocolFromUrl = stripProtocolFromUrl;
105+
/**
106+
* Gets the rsync version.
107+
*/
108+
function getRsyncVersion() {
109+
try {
110+
const versionOutput = (0, child_process_1.execSync)('rsync --version').toString();
111+
const versionMatch = versionOutput.match(/rsync\s+version\s+(\d+\.\d+\.\d+)/);
112+
return versionMatch ? versionMatch[1] : '';
113+
}
114+
catch (error) {
115+
console.error(error);
116+
return '';
117+
}
118+
}

β€Žnode_modules/.bin/semver

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/@eslint/js/package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žnode_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žnode_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žnode_modules/@typescript-eslint/eslint-plugin/node_modules/.bin/eslint

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žnode_modules/@typescript-eslint/parser/node_modules/.bin/eslint

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žnode_modules/@typescript-eslint/type-utils/node_modules/.bin/eslint

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žnode_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žnode_modules/@typescript-eslint/typescript-estree/node_modules/.bin/semver

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
Β (0)