Fix build version generation in CI/CD (#40)

Signed-off-by: Jeffrey Han <39203126+elludraon@users.noreply.github.com>
This commit is contained in:
Jeffrey Han
2022-08-18 11:47:42 -07:00
committed by GitHub
parent f0dd3bc322
commit 8b92a016f3
2 changed files with 2 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ jobs:
registry: tip-tip-wlan-cloud-ucentral.jfrog.io
registry_user: ucentral
registry_password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
checkout_fetch_depth: 0
- name: Notify on failure via Slack
if: failure() && github.ref == 'refs/heads/main'

View File

@@ -4,5 +4,5 @@
if [ -d .git ] && [ -x "$(command -v git)" ]; then
BUILD_NUM="$(git rev-list --count --first-parent HEAD)"
HASH="$(git rev-parse --short HEAD)"
echo "-$HASH($BUILD_NUM)"
echo " - $HASH($BUILD_NUM)"
fi