Skip to content

Commit

Permalink
fix another place when builds are triggered manually
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Aug 8, 2024
1 parent 98c4d61 commit 6303062
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ jobs:
- name: Build and test wheel
run: |
if [[ "$NIGHTLY" = "true" ]]; then
if [ "$NIGHTLY" = "true" -a "$BRANCH_NAME" = "main" ]; then
# Set the pyproject.toml version: convert v0.3.24-30-g138ed79f to 0.3.34.30
# This will fail if `git describe --tags` hits a tag like v0.3.27
version=$(cd OpenBLAS && git describe --tags --abbrev=8 | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g")
sed -e "s/^version = .*/version = \"${version}\"/" -i.bak pyproject.toml
fi
Expand Down

0 comments on commit 6303062

Please sign in to comment.