Skip to content

Commit 01d0dd9

Browse files
committed
🎉 3.6.0 Build
1 parent a2ab10e commit 01d0dd9

File tree

1,618 files changed

+102819
-122873
lines changed

Some content is hidden

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

1,618 files changed

+102819
-122873
lines changed

lib/constants.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export interface ActionInterface {
2121
gitHubToken?: string | null;
2222
/** Determines if the action is running in test mode or not. */
2323
isTest?: boolean | null;
24+
/** Removes files from LFS if toggled to allow normal deployment. */
25+
lfs?: boolean | null;
2426
/** The git config name. */
2527
name?: string;
2628
/** The repository path, for example JamesIves/github-pages-deploy-action. */

lib/constants.js

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ exports.action = {
3939
isTest: process.env.UNIT_TEST
4040
? process.env.UNIT_TEST.toLowerCase() === 'true'
4141
: false,
42+
lfs: !util_1.isNullOrUndefined(core_1.getInput('LFS'))
43+
? core_1.getInput('LFS').toLowerCase() === 'true'
44+
: false,
4245
email: !util_1.isNullOrUndefined(core_1.getInput('GIT_CONFIG_EMAIL'))
4346
? core_1.getInput('GIT_CONFIG_EMAIL')
4447
: pusher && pusher.email

lib/git.js

+5
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ function deploy(action) {
9797
// Checks out the base branch to begin the deployment process.
9898
yield switchToBaseBranch(action);
9999
yield execute_1.execute(`git fetch ${action.repositoryPath}`, action.workspace, action.silent);
100+
if (action.lfs) {
101+
// Migrates data from LFS so it can be comitted the "normal" way.
102+
core_1.info(`Migrating from Git LFS… ⚓`);
103+
yield execute_1.execute(`git lfs migrate export --include="*" --yes`, action.workspace, action.silent);
104+
}
100105
yield execute_1.execute(`git worktree add --checkout ${temporaryDeploymentDirectory} origin/${action.branch}`, action.workspace, action.silent);
101106
// Ensures that items that need to be excluded from the clean job get parsed.
102107
let excludes = '';

lib/util.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Object.defineProperty(exports, "__esModule", { value: true });
33
exports.suppressSensitiveInformation = exports.hasRequiredParameters = exports.generateRepositoryPath = exports.generateTokenType = exports.isNullOrUndefined = void 0;
44
const core_1 = require("@actions/core");
5+
const replaceAll = (input, find, replace) => input.split(find).join(replace);
56
/* Utility function that checks to see if a value is undefined or not. */
67
exports.isNullOrUndefined = (value) => typeof value === 'undefined' || value === null || value === '';
78
/* Generates a token type used for the action. */
@@ -42,14 +43,13 @@ exports.suppressSensitiveInformation = (str, action) => {
4243
// Data is unmasked in debug mode.
4344
return value;
4445
}
45-
if (action.accessToken) {
46-
value = value.replace(action.accessToken, '***');
47-
}
48-
if (action.gitHubToken) {
49-
value = value.replace(action.gitHubToken, '***');
50-
}
51-
if (action.repositoryPath) {
52-
value = value.replace(action.repositoryPath, '***');
46+
const orderedByLength = [
47+
action.accessToken,
48+
action.gitHubToken,
49+
action.repositoryPath
50+
].filter(Boolean).sort((a, b) => b.length - a.length);
51+
for (const find of orderedByLength) {
52+
value = replaceAll(value, find, '***');
5353
}
5454
return value;
5555
};

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/which

-1
This file was deleted.

node_modules/@actions/core/LICENSE.md

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

node_modules/@actions/core/README.md

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

node_modules/@actions/core/package.json

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

node_modules/@babel/core/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/@babel/plugin-syntax-import-meta/LICENSE

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

node_modules/@babel/plugin-syntax-import-meta/README.md

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

node_modules/@babel/plugin-syntax-import-meta/lib/index.js

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

node_modules/@babel/plugin-syntax-import-meta/node_modules/@babel/helper-plugin-utils/LICENSE

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

node_modules/@babel/plugin-syntax-import-meta/node_modules/@babel/helper-plugin-utils/README.md

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

node_modules/@babel/plugin-syntax-import-meta/node_modules/@babel/helper-plugin-utils/lib/index.js

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

node_modules/@babel/plugin-syntax-import-meta/node_modules/@babel/helper-plugin-utils/package.json

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

node_modules/@babel/plugin-syntax-import-meta/package.json

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

node_modules/@babel/template/node_modules/.bin/parser

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

node_modules/@babel/traverse/node_modules/.bin/parser

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

node_modules/@eslint/eslintrc/CHANGELOG.md

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

0 commit comments

Comments
 (0)