CI: set version from git 3
This commit is contained in:
parent
7b53d45026
commit
26b7c049b6
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ jobs:
|
||||||
- name: Run tests (API call)
|
- name: Run tests (API call)
|
||||||
run: .venv/bin/pytest -s tests/basic.py
|
run: .venv/bin/pytest -s tests/basic.py
|
||||||
|
|
||||||
- name: Get version
|
- name: Get version with git describe
|
||||||
id: version
|
id: version
|
||||||
run: echo "version=$(git describe)" >> $GITHUB_OUTPUT
|
run: echo "version=$(git describe)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ jobs:
|
||||||
if: fromJSON(steps.builder.outputs.run)
|
if: fromJSON(steps.builder.outputs.run)
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.version.outputs.version }}
|
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
|
- name: Workaround for bug of podman-login
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue