Fix docker.yml

This commit is contained in:
Mukhtar Akere
2024-11-30 16:01:07 +01:00
parent 8f7c9a19c5
commit 07491b43fe

View File

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