File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 154
154
155
155
if [[ " $CMD " == " bump" ]]; then
156
156
# Change version to src/Client.php
157
- # sed -i "s/const VERSION = '[0-9]\+.[0-9]\+.[0-9]\+\(-dev\)\? '/const VERSION = '$VERSION'/g " $repo/src/Client.php
157
+ sed -i " s/const VERSION = '[0-9]\+\ .[0-9]\+\ .[0-9]\+'/const VERSION = '$VERSION '/" $repo /src/Client.php
158
158
159
- # Change version to .ci/test-matrix.yml
160
-
161
159
# Change version to .github/workflows/unified-release.yml
160
+ sed -i " s/[0-9]\+\.[0-9]\+\.[0-9]\+-SNAPSHOT/$VERSION -SNAPSHOT/" $repo /.github/workflows/unified-release.yml
161
+
162
+ MINOR_VERSION=` echo $VERSION | grep -Eo " [0-9]+.[0-9]+" `
163
+
164
+ # Change version to .ci/test-matrix.yml
165
+ sed -i " s/[0-9]\+\.[0-9]\+-SNAPSHOT/$MINOR_VERSION -SNAPSHOT/" $repo /.ci/test-matrix.yml
162
166
167
+ # Change version to .github/workflows/test.yml
168
+ sed -i " s/es-version: \[[0-9]\+\.[0-9]\+\.\?[0-9]\?-SNAPSHOT\]/es-version: \[$MINOR_VERSION -SNAPSHOT\]/" $repo /.github/workflows/test.yml
163
169
fi
164
170
165
171
if [[ " $CMD " == " codegen" ]]; then
You can’t perform that action at this time.
0 commit comments