[a] more verbose command feedback for update website debug info
This commit is contained in:
parent
b14080ada4
commit
eadd6051e9
1 changed files with 2 additions and 0 deletions
|
@ -32,7 +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 }}")
|
||||||
|
echo 'sed -i "s|\"commit\": \"unavailable\"|\"commit\": \"$SHA\"|" /workspace/sangelo/website/static/assets/debug.json'
|
||||||
sed -i "s|\"commit\": \"unavailable\"|\"commit\": \"$SHA\"|" /workspace/sangelo/website/static/assets/debug.json || echo "Failed to plant debug info into debug.json. (commit hash)"
|
sed -i "s|\"commit\": \"unavailable\"|\"commit\": \"$SHA\"|" /workspace/sangelo/website/static/assets/debug.json || echo "Failed to plant debug info into debug.json. (commit hash)"
|
||||||
|
echo 'sed -i "s|\"tag\": \"unavailable\"|\"tag\": \"$TAG\"|" /workspace/sangelo/website/static/assets/debug.json'
|
||||||
sed -i "s|\"tag\": \"unavailable\"|\"tag\": \"$TAG\"|" /workspace/sangelo/website/static/assets/debug.json || echo "Failed to plant debug info into debug.json. (git tag)"
|
sed -i "s|\"tag\": \"unavailable\"|\"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"
|
echo "Successfully planted debug info into debug.json"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue