Skip to content

Commit

Permalink
Fix docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sirrobot01 committed Nov 30, 2024
1 parent 8f7c9a1 commit 07491b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07491b4

Please sign in to comment.