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

This commit is contained in:
phil 2025-01-11 03:07:34 +01:00
parent 3b3b7a07fb
commit 7b53d45026
2 changed files with 7 additions and 2 deletions

View file

@ -29,7 +29,12 @@ jobs:
- name: Get version
id: version
run: echo "version=$(.venv/bin/oidc-test --version)" >> $GITHUB_OUTPUT
run: echo "version=$(git describe)" >> $GITHUB_OUTPUT
- name: Version
env:
VERSION: ${{ steps.version.outputs.version }}
run: echo "$VERSION"
- name: Set the version in pyproject.toml (workaround for uv not supporting dynamic version)
if: fromJSON(steps.builder.outputs.run)