From 44ecbce671c3b51203ac46bd99e1a656c2061cca Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 02:33:58 +0000 Subject: [PATCH] misc(workflow): colored the echos in the deploy documentation step --- .forgejo/workflows/workflow.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index d303e70..fd8f1e5 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -47,15 +47,20 @@ jobs: continue-on-error: true - name: Deploy the documentation to Meli (CoastalCommits Pages) run: | + GREEN='\033[0;32m' + YELLOW='\033[0;33m' + BLUE='\033[0;34m' + unset GITHUB_TOKEN unset GITLAB_TOKEN + if [ -n "${{ github.base_ref }}" ]; then release="$(basename "${{ github.base_ref }}")" else release="$(basename "${{ github.ref }}")" fi - echo "Deploying to Meli on branch $release" + echo -e "${YELLOW}Deploying to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$release..." npx -p "@getmeli/cli" meli upload ./site \ --url "https://pages.coastalcommits.com" \ @@ -64,7 +69,7 @@ jobs: --release "$release/$(git rev-parse HEAD)" \ --branch "$release" - echo "Deployed to Meli on branch $release" + echo -e "${YELLOW}Deployed to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$release!" env: GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }} continue-on-error: true