Skip to content

Commit 67d8a2d

Browse files
author
nazarfil
committed
extract version
1 parent 4c1c454 commit 67d8a2d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,6 @@ jobs:
6161
shell: bash -l {0}
6262
working-directory: recipe
6363
run: |
64+
VERSION=$(python -c "from importlib.metadata import version; print(version('openhexa.sdk'))")
65+
echo "Building version: $VERSION"
6466
conda build . --channel conda-forge --channel bioconda

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Extract latest version from release files
3232
run: |
33-
VERSION=$(python -c "from importlib.metadata import version; print(version('openhexa.sdk'))")
33+
VERSION=$(awk -F\" '/^version =/ { print $2; exit }' pyproject.toml)
3434
echo "VERSION=$VERSION" >> $GITHUB_ENV
3535
echo "Extracted version: $VERSION"
3636

0 commit comments

Comments
 (0)