diff --git a/src/git.ts b/src/git.ts index b295a45a..8ba525a7 100644 --- a/src/git.ts +++ b/src/git.ts @@ -27,6 +27,7 @@ export async function init(action: ActionInterface): Promise { action.workspace, action.silent ) + await execute(`git remote rm origin`, action.workspace, action.silent) await execute( `git remote add origin ${action.repositoryPath}`, @@ -42,7 +43,7 @@ export async function init(action: ActionInterface): Promise { info('Git configured… 🔧') } catch (error) { throw new Error( - `There was an error initializing the repository: ${suppressSensitiveInformation( + `There was an error initializing the repository,: ${suppressSensitiveInformation( error.message, action )} ❌` diff --git a/src/lib.ts b/src/lib.ts index 68c53c3b..daa7e7f4 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -13,6 +13,15 @@ export default async function run( let status: Status = Status.RUNNING try { + info(`GitHub Pages Deploy Action 🚀 + + ✈️ Getting Started Guide: https://github.com/marketplace/actions/deploy-to-github-pages + ❓ FAQ: https://github.com/JamesIves/github-pages-deploy-action/wiki + 🔧 Support: https://github.com/JamesIves/github-pages-deploy-action/issues + ⭐ Contribute: https://github.com/JamesIves/github-pages-deploy-action/blob/dev/CONTRIBUTING.md + + Maintainer: James Ives (https://jamesiv.es)`) + info('Checking configuration and starting deployment… 🚦') const settings = {