Skip to content

Commit ec9c88b

Browse files
committed
Merge branch 'releases/v4' of https://github.com/JamesIves/github-pages-deploy-action into releases/v4
2 parents e58e46c + 19d0812 commit ec9c88b

File tree

4,574 files changed

+1374538
-426945
lines changed

Some content is hidden

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

4,574 files changed

+1374538
-426945
lines changed

lib/constants.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export declare enum TestFlag {
22
NONE = 0,
3-
HAS_CHANGED_FILES = 2,
4-
HAS_REMOTE_BRANCH = 4,
5-
UNABLE_TO_REMOVE_ORIGIN = 8,
6-
UNABLE_TO_UNSET_GIT_CONFIG = 16,
3+
HAS_CHANGED_FILES = 2,// Assume changes to commit.
4+
HAS_REMOTE_BRANCH = 4,// Assume remote repository has existing commits.
5+
UNABLE_TO_REMOVE_ORIGIN = 8,// Assume we can't remove origin.
6+
UNABLE_TO_UNSET_GIT_CONFIG = 16,// Assume we can't remove previously set git configs.
77
HAS_REJECTED_COMMIT = 32
88
}
99
export interface ActionInterface {

lib/constants.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var TestFlag;
3737
TestFlag[TestFlag["UNABLE_TO_REMOVE_ORIGIN"] = 8] = "UNABLE_TO_REMOVE_ORIGIN";
3838
TestFlag[TestFlag["UNABLE_TO_UNSET_GIT_CONFIG"] = 16] = "UNABLE_TO_UNSET_GIT_CONFIG";
3939
TestFlag[TestFlag["HAS_REJECTED_COMMIT"] = 32] = "HAS_REJECTED_COMMIT"; // Assume commit rejection.
40-
})(TestFlag = exports.TestFlag || (exports.TestFlag = {}));
40+
})(TestFlag || (exports.TestFlag = TestFlag = {}));
4141
/* Required action data that gets initialized when running within the GitHub Actions environment. */
4242
exports.action = {
4343
folder: (0, core_1.getInput)('folder'),
@@ -102,14 +102,14 @@ var Status;
102102
Status["FAILED"] = "failed";
103103
Status["SKIPPED"] = "skipped";
104104
Status["RUNNING"] = "running";
105-
})(Status = exports.Status || (exports.Status = {}));
105+
})(Status || (exports.Status = Status = {}));
106106
/* Platform codes. */
107107
var OperatingSystems;
108108
(function (OperatingSystems) {
109109
OperatingSystems["LINUX"] = "Linux";
110110
OperatingSystems["WINDOWS"] = "Windows";
111111
OperatingSystems["MACOS"] = "macOS";
112-
})(OperatingSystems = exports.OperatingSystems || (exports.OperatingSystems = {}));
112+
})(OperatingSystems || (exports.OperatingSystems = OperatingSystems = {}));
113113
exports.SupportedOperatingSystems = [OperatingSystems.LINUX];
114114
/* Excluded files. */
115115
var DefaultExcludedFiles;
@@ -119,4 +119,4 @@ var DefaultExcludedFiles;
119119
DefaultExcludedFiles["SSH"] = ".ssh";
120120
DefaultExcludedFiles["GIT"] = ".git";
121121
DefaultExcludedFiles["GITHUB"] = ".github";
122-
})(DefaultExcludedFiles = exports.DefaultExcludedFiles || (exports.DefaultExcludedFiles = {}));
122+
})(DefaultExcludedFiles || (exports.DefaultExcludedFiles = DefaultExcludedFiles = {}));

lib/execute.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const output = { stdout: '', stderr: '' };
2525
* @param {boolean} ignoreReturnCode - Determines whether to throw an error
2626
* on a non-zero exit status or to leave implementation up to the caller.
2727
*/
28-
function execute(cmd, cwd, silent, ignoreReturnCode = false) {
29-
return __awaiter(this, void 0, void 0, function* () {
28+
function execute(cmd_1, cwd_1, silent_1) {
29+
return __awaiter(this, arguments, void 0, function* (cmd, cwd, silent, ignoreReturnCode = false) {
3030
output.stdout = '';
3131
output.stderr = '';
3232
yield (0, exec_1.exec)(cmd, [], {

lib/git.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,10 @@ function deploy(action) {
186186
(0, core_1.info)('Updates were rejected');
187187
// If the push failed for any fatal reason other than being rejected,
188188
// there is a problem
189-
if (!rejected && pushResult.stderr.trim().startsWith('fatal:'))
189+
if (!rejected &&
190+
pushResult.stderr.split(/\n/).some(s => s.trim().startsWith('fatal:'))) {
190191
throw new Error(pushResult.stderr);
192+
}
191193
} while (rejected);
192194
}
193195
(0, core_1.info)(`Changes committed to the ${action.branch} branch… 📦`);

node_modules/.bin/acorn

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

node_modules/.bin/eslint

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

node_modules/.bin/js-yaml

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

node_modules/.bin/node-which

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

node_modules/.bin/semver

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

node_modules/.bin/tsc

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

node_modules/.bin/tsserver

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

node_modules/.bin/which

-1
This file was deleted.

node_modules/@aashutoshrathi/word-wrap/LICENSE

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

node_modules/@aashutoshrathi/word-wrap/README.md

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

node_modules/@aashutoshrathi/word-wrap/index.d.ts

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

0 commit comments

Comments
 (0)