CI: set version from git
This commit is contained in:
parent
71b6cdc2bc
commit
3b3b7a07fb
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue