Skip to content
This repository was archived by the owner on Jun 14, 2023. It is now read-only.

Commit 29f9d4a

Browse files
authored
Merge pull request #64 from MetacityTools/dev
Package version in CI Bugfix
2 parents a3156d6 + 9965539 commit 29f9d4a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
152152
- name: "Get release version"
153153
run: |
154-
CURRENT_VERSION=$(python3 setup.py --version)
154+
CURRENT_VERSION=$(python3 setup.py --version | tail -1)
155155
echo "Current version: $CURRENT_VERSION"
156156
echo "CURRENT_VERSION=v$CURRENT_VERSION" >> $GITHUB_ENV
157157

.github/workflows/version.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Publish to Container Registry"
1+
name: "Get Version"
22

33
on:
44
workflow_dispatch: {}
@@ -10,7 +10,6 @@ env:
1010
jobs:
1111
version:
1212
name: Get version to ENV
13-
needs: [make-wheels, make-sdist]
1413
runs-on: ubuntu-latest
1514
steps:
1615
- uses: actions/checkout@v3
@@ -29,7 +28,7 @@ jobs:
2928
3029
- name: "Get release version"
3130
run: |
32-
CURRENT_VERSION=$(python3 setup.py --version)
31+
CURRENT_VERSION=$(python3 setup.py --version | tail -1)
3332
echo "Current version: $CURRENT_VERSION"
3433
echo "CURRENT_VERSION=v$CURRENT_VERSION" >> $GITHUB_ENV
3534

0 commit comments

Comments
 (0)