Skip to content

Commit fa35829

Browse files
committed
Add tag to collect_env.sh
Signed-off-by: Mateus Devino <mdevino@ibm.com>
1 parent 7db79e2 commit fa35829

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Hint: In case you cannot run script due to permissions, try `chmod u+x scripts/c
1919
<!--
2020
Example output:
2121
22-
rustc 1.78.0 (9b00956e5 2024-04-29)
23-
Commit hash: 1892295
22+
rustc 1.81.0 (eeb90cda1 2024-09-04)
23+
Orchestrator version: 1.0.0 (279934c)
2424
-->
2525

2626

scripts/collect_env.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#/usr/bin/env sh
22

33
rustc --version
4-
echo "Commit hash: $(git log -1 --pretty=format:'%h')"
4+
5+
ORCHESTRATOR_VERSION=$(git tag --points-at HEAD)
6+
if [ -z "$ORCHESTRATOR_VERSION" ]; then
7+
ORCHESTRATOR_VERSION="No tag associated"
8+
fi
9+
echo "Orchestrator version: $ORCHESTRATOR_VERSION ($(git log -1 --pretty=format:'%h'))"

0 commit comments

Comments
 (0)