CI: set version from git 3
Some checks failed
/ build (push) Failing after 5s
/ test (push) Successful in 5s

This commit is contained in:
phil 2025-01-11 03:11:03 +01:00
parent 7b53d45026
commit 26b7c049b6

View file

@ -27,7 +27,7 @@ jobs:
- name: Run tests (API call)
run: .venv/bin/pytest -s tests/basic.py
- name: Get version
- name: Get version with git describe
id: version
run: echo "version=$(git describe)" >> $GITHUB_OUTPUT
@ -40,7 +40,7 @@ jobs:
if: fromJSON(steps.builder.outputs.run)
env:
VERSION: ${{ steps.version.outputs.version }}
run: sed "s/0.0.0/${VERSION}/" -i pyproject.toml
run: sed "s/0.0.0/$VERSION/" -i pyproject.toml
- name: Workaround for bug of podman-login
run: |