Skip to content

Commit 6303062

Browse files
committed
fix another place when builds are triggered manually
1 parent 98c4d61 commit 6303062

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/posix.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ jobs:
141141
142142
- name: Build and test wheel
143143
run: |
144-
if [[ "$NIGHTLY" = "true" ]]; then
144+
if [ "$NIGHTLY" = "true" -a "$BRANCH_NAME" = "main" ]; then
145145
# Set the pyproject.toml version: convert v0.3.24-30-g138ed79f to 0.3.34.30
146+
# This will fail if `git describe --tags` hits a tag like v0.3.27
146147
version=$(cd OpenBLAS && git describe --tags --abbrev=8 | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g")
147148
sed -e "s/^version = .*/version = \"${version}\"/" -i.bak pyproject.toml
148149
fi

0 commit comments

Comments
 (0)