[a] add echo msg output to task

This commit is contained in:
Sangelo 2024-06-05 09:09:48 +02:00
parent d0da5a206f
commit 87115e9d55

View file

@ -32,8 +32,9 @@ jobs:
run: | run: |
export TAG=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///') export TAG=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///')
export SHA=$(echo "${{ github.sha }}") export SHA=$(echo "${{ github.sha }}")
sed -i "s|\"commit\": \"\"|\"commit\": \"$SHA\"|" /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 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 - name: 🐋 Build Container
run: | run: |