From 87115e9d5540aa1ccd74d432aef2ed2048e9a5bf Mon Sep 17 00:00:00 2001 From: Sangelo Date: Wed, 5 Jun 2024 09:09:48 +0200 Subject: [PATCH] [a] add echo msg output to task --- .forgejo/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index d814e98..ec41d20 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -32,8 +32,9 @@ jobs: run: | export TAG=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///') export SHA=$(echo "${{ github.sha }}") - sed -i "s|\"commit\": \"\"|\"commit\": \"$SHA\"|" /workspace/sangelo/website/static/assets/debug.json - sed -i "s|\"tag\": \"\"|\"tag\": \"$TAG\"|" /workspace/sangelo/website/static/assets/debug.json + sed -i "s|\"commit\": \"\"|\"commit\": \"$SHA\"|" /workspace/sangelo/website/static/assets/debug.json || echo "Failed to plant debug info into debug.json. (commit hash)" + sed -i "s|\"tag\": \"\"|\"tag\": \"$TAG\"|" /workspace/sangelo/website/static/assets/debug.json || echo "Failed to plant debug info into debug.json. (git tag)" + echo "Successfully planted debug info into debug.json" - name: 🐋 Build Container run: |