Skip to content

Commit

Permalink
Add tag to collect_env.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Mateus Devino <mdevino@ibm.com>
  • Loading branch information
mdevino committed Jan 24, 2025
1 parent 7db79e2 commit fa35829
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Hint: In case you cannot run script due to permissions, try `chmod u+x scripts/c
<!--
Example output:
rustc 1.78.0 (9b00956e5 2024-04-29)
Commit hash: 1892295
rustc 1.81.0 (eeb90cda1 2024-09-04)
Orchestrator version: 1.0.0 (279934c)
-->


Expand Down
7 changes: 6 additions & 1 deletion scripts/collect_env.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#/usr/bin/env sh

rustc --version
echo "Commit hash: $(git log -1 --pretty=format:'%h')"

ORCHESTRATOR_VERSION=$(git tag --points-at HEAD)
if [ -z "$ORCHESTRATOR_VERSION" ]; then
ORCHESTRATOR_VERSION="No tag associated"
fi
echo "Orchestrator version: $ORCHESTRATOR_VERSION ($(git log -1 --pretty=format:'%h'))"

0 comments on commit fa35829

Please sign in to comment.