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

This commit is contained in:
phil 2025-01-11 02:46:42 +01:00
parent 71b6cdc2bc
commit 3b3b7a07fb
2 changed files with 7 additions and 1 deletions

View file

@ -31,6 +31,12 @@ jobs:
id: version
run: echo "version=$(.venv/bin/oidc-test --version)" >> $GITHUB_OUTPUT
- name: Set the version in pyproject.toml (workaround for uv not supporting dynamic version)
if: fromJSON(steps.builder.outputs.run)
env:
VERSION: ${{ steps.version.outputs.version }}
run: sed "s/0.0.0/${VERSION}/" -i pyproject.toml
- name: Workaround for bug of podman-login
run: |
mkdir -p $HOME/.docker

View file

@ -1,6 +1,6 @@
[project]
name = "oidc-fastapi-test"
version = "0.1.6"
version = "0.0.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"