mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Formatting
This commit is contained in:
parent
4e8c644240
commit
9e5e2050db
@ -23,7 +23,7 @@ function init() {
|
|||||||
util_1.isNullOrUndefined(constants_1.action.gitHubToken) &&
|
util_1.isNullOrUndefined(constants_1.action.gitHubToken) &&
|
||||||
util_1.isNullOrUndefined(constants_1.action.ssh)) {
|
util_1.isNullOrUndefined(constants_1.action.ssh)) {
|
||||||
core_1.setFailed("You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true.");
|
core_1.setFailed("You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true.");
|
||||||
throw Error("No deployment token/method was provided.");
|
throw Error("No deployment token/method was provided. You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true.");
|
||||||
}
|
}
|
||||||
if (constants_1.action.build.startsWith("/") || constants_1.action.build.startsWith("./")) {
|
if (constants_1.action.build.startsWith("/") || constants_1.action.build.startsWith("./")) {
|
||||||
core_1.setFailed(`The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly.`);
|
core_1.setFailed(`The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly.`);
|
||||||
|
@ -23,7 +23,9 @@ export async function init(): Promise<any> {
|
|||||||
"You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true."
|
"You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true."
|
||||||
);
|
);
|
||||||
|
|
||||||
throw Error("No deployment token/method was provided.");
|
throw Error(
|
||||||
|
"No deployment token/method was provided. You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true."
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (action.build.startsWith("/") || action.build.startsWith("./")) {
|
if (action.build.startsWith("/") || action.build.startsWith("./")) {
|
||||||
@ -31,7 +33,9 @@ export async function init(): Promise<any> {
|
|||||||
`The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly.`
|
`The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly.`
|
||||||
);
|
);
|
||||||
|
|
||||||
throw Error("Incorrectly formatted build folder.");
|
throw Error(
|
||||||
|
"Incorrectly formatted build folder. The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly."
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`Deploying using ${tokenType}... 🔑`);
|
console.log(`Deploying using ${tokenType}... 🔑`);
|
||||||
|
Loading…
Reference in New Issue
Block a user