diff --git a/lib/git.js b/lib/git.js index d67244fb..cc234bab 100644 --- a/lib/git.js +++ b/lib/git.js @@ -28,9 +28,11 @@ function init() { if (!constants_1.action.accessToken && !constants_1.action.gitHubToken) { return core.setFailed("You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy."); } - if (constants_1.action.build.startsWith("/") || constants_1.action.build.startsWith("./")) { - return core.setFailed(`The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly.`); - } + /*if (action.build.startsWith("/") || action.build.startsWith("./")) { + return core.setFailed( + `The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly.` + ); + }*/ yield util_1.execute(`git init`, constants_1.action.build); yield util_1.execute(`git config user.name ${constants_1.action.pusher.name}`, constants_1.action.build); yield util_1.execute(`git config user.email ${constants_1.action.pusher.email}`, constants_1.action.build); diff --git a/src/git.ts b/src/git.ts index e94bc9c0..d5911b02 100644 --- a/src/git.ts +++ b/src/git.ts @@ -14,11 +14,11 @@ export async function init(): Promise { ); } - if (action.build.startsWith("/") || action.build.startsWith("./")) { + /*if (action.build.startsWith("/") || action.build.startsWith("./")) { return core.setFailed( `The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly.` ); - } + }*/ await execute(`git init`, action.build); await execute(`git config user.name ${action.pusher.name}`, action.build);