D'oh! We need tags to git describe

Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>
This commit is contained in:
Stavros Ntentos
2024-02-29 16:45:29 +02:00
committed by Brenden Matthews
parent 0daa51d970
commit e7aeed4ebb

View File

@@ -77,9 +77,11 @@ jobs:
pip3 install --upgrade pyyaml
- name: Checkout
uses: actions/checkout@v4
- name: Get tags
run: git fetch --tags origin
- name: Get git version
id: git-version
run: echo "GIT_VERSION=$(git describe --tags)" >> $GITHUB_ENV
run: echo "GIT_VERSION=$(git describe --tags --always)" >> $GITHUB_ENV
- name: Import GPG Deploy Key
# only run on main branch
if: github.ref == 'refs/heads/main'