From bf22663ed6e813f441ade10acdc9f4f1d1e34cbb Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Wed, 17 Apr 2024 11:23:00 +0800 Subject: [PATCH] fix(ci): fix version bot (#705) * fix(ci): fix version bot * test * improve * Revert "test" This reverts commit 397b4b236ecf36e546d79e6fd2d104f51ca6e602. --- .github/workflows/bump_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index fc2a520b0e..61c4e85bd7 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -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=$?