fix(ci): fix version bot (#705)

* fix(ci): fix version bot

* test

* improve

* Revert "test"

This reverts commit 397b4b236ecf36e546d79e6fd2d104f51ca6e602.
This commit is contained in:
HAOYUatHZ 2024-04-17 11:23:00 +08:00 committed by GitHub
parent d1055b164b
commit bf22663ed6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,7 +31,7 @@ jobs:
# check if version changed in version.go
# note: the grep will fail if use \d instead of [0-9]
git diff HEAD..origin/develop --text --no-ext-diff --unified=0 --no-prefix params/version.go | grep -E '^\+VersionPatch = "v[0-9]+"$' && true
git diff HEAD..origin/develop --text --no-ext-diff --unified=0 --no-prefix params/version.go | grep -E '^\+\s*VersionPatch' && true
exit_code=$?