Compare commits

...

2 commits

Author SHA1 Message Date
Sangelo 3ffb88f513 [c] fix weird text wrapping with debug mode
All checks were successful
Build and push docker image / publish (push) Successful in 57s
2024-06-05 09:10:15 +02:00
Sangelo 87115e9d55 [a] add echo msg output to task 2024-06-05 09:09:48 +02:00
3 changed files with 5 additions and 3 deletions

View file

@ -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: |

View file

@ -289,7 +289,7 @@
{#if showDebugInfo}
<div class="debug-ct">
<div class="debug-info">
<p>Commit Hash: </p><pre>{commitHash}</pre>
Commit: <pre>{commitHash}</pre>
</div>
<div class="debug-info">
<p>Git Tag: </p><pre>{gitTag}</pre>

View file

@ -198,6 +198,7 @@
p, pre {
margin: 0;
text-wrap: nowrap;
}
}
}