Compare commits
2 commits
d0da5a206f
...
3ffb88f513
Author | SHA1 | Date | |
---|---|---|---|
3ffb88f513 | |||
87115e9d55 |
3 changed files with 5 additions and 3 deletions
|
@ -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: |
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -198,6 +198,7 @@
|
|||
|
||||
p, pre {
|
||||
margin: 0;
|
||||
text-wrap: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue