File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 42
42
run : |
43
43
TAG=${{ github.event.inputs.tag }}
44
44
VERSION=${TAG#v}
45
- sed -i '/^version /s/=.*$/= "'"$VERSION"'"/' hf_xet/Cargo.toml
45
+ if [ -n "$VERSION" ]; then
46
+ sed -i '/^version /s/=.*$/= "'"$VERSION"'"/' hf_xet/Cargo.toml
47
+ fi
46
48
- name : Build wheels
47
49
uses : PyO3/maturin-action@v1
48
50
with :
86
88
run : |
87
89
TAG=${{ github.event.inputs.tag }}
88
90
VERSION=${TAG#v}
89
- sed -i '/^version /s/=.*$/= "'"$VERSION"'"/' hf_xet/Cargo.toml
91
+ if [ -n "$VERSION" ]; then
92
+ sed -i '/^version /s/=.*$/= "'"$VERSION"'"/' hf_xet/Cargo.toml
93
+ fi
90
94
- name : Build wheels
91
95
uses : PyO3/maturin-action@v1
92
96
with :
@@ -119,7 +123,9 @@ jobs:
119
123
run : |
120
124
TAG=${{ github.event.inputs.tag }}
121
125
VERSION=${TAG#v}
122
- sed -i '/^version /s/=.*$/= "'"$VERSION"'"/' hf_xet/Cargo.toml
126
+ if [ -n "$VERSION" ]; then
127
+ sed -i '/^version /s/=.*$/= "'"$VERSION"'"/' hf_xet/Cargo.toml
128
+ fi
123
129
- name : Build wheels
124
130
uses : PyO3/maturin-action@v1
125
131
with :
@@ -151,7 +157,9 @@ jobs:
151
157
run : |
152
158
TAG=${{ github.event.inputs.tag }}
153
159
VERSION=${TAG#v}
154
- sed -i '' '/^version /s/=.*$/= "'"$VERSION"'"/' hf_xet/Cargo.toml
160
+ if [ -n "$VERSION" ]; then
161
+ sed -i '' '/^version /s/=.*$/= "'"$VERSION"'"/' hf_xet/Cargo.toml
162
+ fi
155
163
- name : Build wheels
156
164
uses : PyO3/maturin-action@v1
157
165
with :
You can’t perform that action at this time.
0 commit comments