Skip to content

Commit 387b573

Browse files
authored
Merge pull request #122 from mattip/nightly
fix nightly version parsing
2 parents ab19bb2 + 63015e5 commit 387b573

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/posix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ jobs:
111111
- name: Build and test wheel
112112
run: |
113113
if [[ "$NIGHTLY" = "true" ]]; then
114-
# Set the pyproject.toml version
115-
version = $(cd OpenBLAS && git describe --tags --abbrev=8 | sed -e "s/^v\(.*\)-g.*/\1/")
114+
# Set the pyproject.toml version: convert v0.3.24-30-g138ed79f to 0.3.34.30
115+
version=$(cd OpenBLAS && git describe --tags --abbrev=8 | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g")
116116
sed -e "s/^version = .*/version = ${version}/" -i.bak pyproject.toml
117117
fi
118118
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then

0 commit comments

Comments
 (0)