From 2546145f694a1d3215f2ba134a891860a0b08353 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 4 Jul 2020 14:29:45 -0400 Subject: [PATCH] Adds support docs to the top of the readme etc --- src/git.ts | 3 ++- src/lib.ts | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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 = {