Skip to content

Commit 88503b5

Browse files
authored
Include Tutor git SHA in version_tag when installed from git checkout
1 parent b29fc60 commit 88503b5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ jobs:
8989
id: tutor-version
9090
run: |
9191
version=$(tutor --version | awk '{print $NF}')
92+
if [[ -d "./tutor/.git" ]]; then
93+
tutor_sha=$(git -C ./tutor rev-parse --short HEAD)
94+
version="${version}+git.${tutor_sha}"
95+
fi
9296
version_tag=${version//[^A-Za-z0-9_.-]/-}
9397
echo "version=$version" >> "$GITHUB_OUTPUT"
9498
echo "version_tag=$version_tag" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)