Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed May 4, 2021
1 parent b4a9c8c commit 2b535bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.go/version.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env sh

if [ -z "$CI" ] ; then
#outside of
# outside of CI
ref=$(git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD)
version="${ref}"-$(git log -1 --format=%h)-$(date +%Y%m%dT%H:%M:%S)
else
# outside of CI (gh actions)
ref="$(echo ${GITHUB_REF} | cut -d'/' -f3)"
version=${ref}-${GITHUB_SHA:0:7}-$(date +%Y%m%dT%H:%M:%S)
fi
Expand Down

0 comments on commit 2b535bc

Please sign in to comment.