From dcb66bba22323385a52c92f8dc78995672ffa040 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 6 Jun 2020 14:15:12 -0400 Subject: [PATCH] Changes --- lib/git.js | 1 - lib/util.js | 7 ------- src/git.ts | 2 -- 3 files changed, 10 deletions(-) diff --git a/lib/git.js b/lib/git.js index 71401725..d5798c42 100644 --- a/lib/git.js +++ b/lib/git.js @@ -90,7 +90,6 @@ function deploy(action) { if (!branchExists && !action.isTest) { yield generateBranch(action); } - core_1.info('Moving on...'); // Checks out the base branch to begin the deployment process. yield switchToBaseBranch(action); yield execute_1.execute(`git fetch ${action.repositoryPath}`, action.workspace); diff --git a/lib/util.js b/lib/util.js index 0bef50ab..2b378944 100644 --- a/lib/util.js +++ b/lib/util.js @@ -1,11 +1,7 @@ "use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; Object.defineProperty(exports, "__esModule", { value: true }); exports.suppressSensitiveInformation = exports.hasRequiredParameters = exports.generateRepositoryPath = exports.generateTokenType = exports.isNullOrUndefined = void 0; const core_1 = require("@actions/core"); -const fs_1 = __importDefault(require("fs")); /* Utility function that checks to see if a value is undefined or not. */ exports.isNullOrUndefined = (value) => typeof value === 'undefined' || value === null || value === ''; /* Generates a token type used for the action. */ @@ -38,9 +34,6 @@ exports.hasRequiredParameters = (action) => { if (action.folder.startsWith('/') || action.folder.startsWith('./')) { throw new Error("Incorrectly formatted build folder. The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly."); } - if (!fs_1.default.existsSync(action.folder) && action.folder !== action.root) { - throw new Error(`The ${action.folder} directory you're trying to deploy doesn't exist. ❗`); - } }; /* Suppresses sensitive information from being exposed in error messages. */ exports.suppressSensitiveInformation = (str, action) => { diff --git a/src/git.ts b/src/git.ts index 0c297a1d..fde9eee2 100644 --- a/src/git.ts +++ b/src/git.ts @@ -123,8 +123,6 @@ export async function deploy(action: ActionInterface): Promise { await generateBranch(action) } - info('Moving on...') - // Checks out the base branch to begin the deployment process. await switchToBaseBranch(action) await execute(`git fetch ${action.repositoryPath}`, action.workspace)