Fix docker.yml

This commit is contained in:
Mukhtar Akere
2024-11-30 16:03:33 +01:00
parent 07491b43fe
commit 9fb1118475

View File

@@ -15,7 +15,8 @@ jobs:
- name: Get version
id: get_version
shell: /usr/bin/bash -e {0}
env:
GITHUB_REF: ${{ github.ref }}
run: |
if [[ "${GITHUB_REF}" == 'refs/heads/main' ]]; then
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "")