diff --git a/src/git.ts b/src/git.ts index 7977278e..865a19da 100644 --- a/src/git.ts +++ b/src/git.ts @@ -12,8 +12,8 @@ export async function init(action: ActionInterface): Promise { try { hasRequiredParameters(action) - info(`Deploying using ${action.tokenType}... 🔑`) - info('Configuring git...') + info(`Deploying using ${action.tokenType}… 🔑`) + info('Configuring git…') await execute(`git init`, action.workspace) await execute(`git config user.name "${action.name}"`, action.workspace) @@ -30,7 +30,7 @@ export async function init(action: ActionInterface): Promise { await execute(`git fetch`, action.workspace) - info('Git configured... 🔧') + info('Git configured… 🔧') } catch (error) { throw new Error( `There was an error initializing the repository: ${suppressSensitiveInformation( @@ -69,13 +69,13 @@ export async function generateBranch(action: ActionInterface): Promise { try { hasRequiredParameters(action) - info(`Creating the ${action.branch} branch...`) + info(`Creating the ${action.branch} branch…`) await switchToBaseBranch(action) await execute(`git checkout --orphan ${action.branch}`, action.workspace) await execute(`git reset --hard`, action.workspace) await execute( - `git commit --allow-empty -m "Initial ${action.branch} commit."`, + `git commit --allow-empty -m "Initial ${action.branch} commit"`, action.workspace ) await execute( @@ -84,7 +84,7 @@ export async function generateBranch(action: ActionInterface): Promise { ) await execute(`git fetch`, action.workspace) - info(`Created the ${action.branch} branch... 🔧`) + info(`Created the ${action.branch} branch… 🔧`) } catch (error) { throw new Error( `There was an error creating the deployment branch: ${suppressSensitiveInformation( @@ -99,7 +99,7 @@ export async function generateBranch(action: ActionInterface): Promise { export async function deploy(action: ActionInterface): Promise { const temporaryDeploymentDirectory = 'gh-action-temp-deployment-folder' const temporaryDeploymentBranch = 'gh-action-temp-deployment-branch' - info('Starting to commit changes...') + info('Starting to commit changes…') try { hasRequiredParameters(action) @@ -171,7 +171,7 @@ export async function deploy(action: ActionInterface): Promise { ) if (!hasFilesToCommit && !action.isTest) { - info('There is nothing to commit. Exiting early... 📭') + info('There is nothing to commit. Exiting early… 📭') return } @@ -190,7 +190,7 @@ export async function deploy(action: ActionInterface): Promise { ? action.commitMessage : `Deploying to ${action.branch} from ${action.baseBranch}` } ${ - process.env.GITHUB_SHA ? `- ${process.env.GITHUB_SHA}` : '' + process.env.GITHUB_SHA ? `@ ${process.env.GITHUB_SHA}` : '' } 🚀" --quiet`, `${action.workspace}/${temporaryDeploymentDirectory}` ) @@ -199,10 +199,10 @@ export async function deploy(action: ActionInterface): Promise { `${action.workspace}/${temporaryDeploymentDirectory}` ) - info(`Changes committed to the ${action.branch} branch... 📦`) + info(`Changes committed to the ${action.branch} branch… 📦`) // Cleans up temporary files/folders and restores the git state. - info('Running post deployment cleanup jobs...') + info('Running post deployment cleanup jobs…') await execute( `git checkout --progress --force ${action.defaultBranch}`, action.workspace