Skip to content

Commit 289845b

Browse files
committed
Deploy Production Code for Commit 77237a3 πŸš€
1 parent 77237a3 commit 289845b

File tree

310 files changed

+9524
-3391
lines changed

Some content is hidden

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

310 files changed

+9524
-3391
lines changed

β€Žlib/constants.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export interface ActionInterface {
2727
folderPath?: string;
2828
/** Whether to force-push or attempt to merge existing changes. */
2929
force?: boolean;
30+
/** How many times to attempt to merge existing changes into the remote HEAD. */
31+
attemptLimit?: number;
3032
/** Determines test scenarios the action is running in. */
3133
isTest: TestFlag;
3234
/** The git config name. */

β€Žlib/constants.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ exports.action = {
5151
force: !(0, util_1.isNullOrUndefined)((0, core_1.getInput)('force'))
5252
? (0, core_1.getInput)('force').toLowerCase() === 'true'
5353
: true,
54+
attemptLimit: !(0, util_1.isNullOrUndefined)((0, core_1.getInput)('attempt-limit'))
55+
? parseInt((0, core_1.getInput)('attempt-limit'), 10)
56+
: 3,
5457
clean: !(0, util_1.isNullOrUndefined)((0, core_1.getInput)('clean'))
5558
? (0, core_1.getInput)('clean').toLowerCase() === 'true'
5659
: false,

β€Žlib/git.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function deploy(action) {
114114
Pushes all of the build files into the deployment directory.
115115
Allows the user to specify the root if '.' is provided.
116116
rsync is used to prevent file duplication. */
117-
yield (0, execute_1.execute)(`rsync -q -av --checksum --progress ${action.folderPath}/. ${action.targetFolder
117+
yield (0, execute_1.execute)(`rsync -q -av --checksum --progress --mkpath ${action.folderPath}/. ${action.targetFolder
118118
? `${temporaryDeploymentDirectory}/${action.targetFolder}`
119119
: temporaryDeploymentDirectory} ${action.clean
120120
? `--delete ${excludes} ${!fs_1.default.existsSync(`${action.folderPath}/${constants_1.DefaultExcludedFiles.CNAME}`)
@@ -159,15 +159,15 @@ function deploy(action) {
159159
yield (0, execute_1.execute)(`git push --force ${action.repositoryPath} ${temporaryDeploymentBranch}:${action.branch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent);
160160
}
161161
else {
162-
const ATTEMPT_LIMIT = 3;
162+
const attemptLimit = action.attemptLimit || 3;
163163
// Attempt to push our changes, but fetch + rebase if there were
164164
// other changes added in the meantime
165165
let attempt = 0;
166166
// Keep track of whether the most recent attempt was rejected
167167
let rejected = false;
168168
do {
169169
attempt++;
170-
if (attempt > ATTEMPT_LIMIT)
170+
if (attempt > attemptLimit)
171171
throw new Error(`Attempt limit exceeded`);
172172
// Handle rejection for the previous attempt first such that, on
173173
// the final attempt, time is not wasted rebasing it when it will
@@ -178,7 +178,7 @@ function deploy(action) {
178178
(0, core_1.info)(`Rebasing this deployment onto ${action.branch}…`);
179179
yield (0, execute_1.execute)(`git rebase ${action.branch} ${temporaryDeploymentBranch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent);
180180
}
181-
(0, core_1.info)(`Pushing changes… (attempt ${attempt} of ${ATTEMPT_LIMIT})`);
181+
(0, core_1.info)(`Pushing changes… (attempt ${attempt} of ${attemptLimit})`);
182182
const pushResult = yield (0, execute_1.execute)(`git push --porcelain ${action.repositoryPath} ${temporaryDeploymentBranch}:${action.branch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent, true // Ignore non-zero exit status
183183
);
184184
rejected =

β€Žnode_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/README.md

Lines changed: 105 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/espree/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs renamed to β€Žnode_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs

Lines changed: 13 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/espree/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts renamed to β€Žnode_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/eslint/node_modules/eslint-visitor-keys/dist/index.d.ts renamed to β€Žnode_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/index.d.ts

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žnode_modules/eslint/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts renamed to β€Žnode_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts

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/node_modules/eslint-visitor-keys/lib/index.js renamed to β€Žnode_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js

Lines changed: 7 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)