From 57588b5143efaf2fa4fc6efda365926c467595f2 Mon Sep 17 00:00:00 2001 From: Sheldon Date: Wed, 27 Sep 2023 21:05:27 +0800 Subject: [PATCH] fix commit-changing only the first commit need to be change Signed-off-by: Sheldon --- .github/workflows/update-knowhere-commit.yaml | 2 +- internal/core/thirdparty/knowhere/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-knowhere-commit.yaml b/.github/workflows/update-knowhere-commit.yaml index 6739c175bb2de..3bbcff305349e 100644 --- a/.github/workflows/update-knowhere-commit.yaml +++ b/.github/workflows/update-knowhere-commit.yaml @@ -39,7 +39,7 @@ jobs: continue-on-error: true shell: bash run: | - sed -i "s#( KNOWHERE_VERSION.*#( KNOWHERE_VERSION ${{ steps.get-knowhere-latest-commit.outputs.knowhere-commit }} )#g" internal/core/thirdparty/knowhere/CMakeLists.txt + sed -i "0,/(\ KNOWHERE_VERSION/ s#( KNOWHERE_VERSION.*#( KNOWHERE_VERSION ${{ steps.get-knowhere-latest-commit.outputs.knowhere-commit }} )#" internal/core/thirdparty/knowhere/CMakeLists.txt head -n 17 internal/core/thirdparty/knowhere/CMakeLists.txt git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" diff --git a/internal/core/thirdparty/knowhere/CMakeLists.txt b/internal/core/thirdparty/knowhere/CMakeLists.txt index ca25d51fc7744..fe9abf61c0d38 100644 --- a/internal/core/thirdparty/knowhere/CMakeLists.txt +++ b/internal/core/thirdparty/knowhere/CMakeLists.txt @@ -11,7 +11,7 @@ # or implied. See the License for the specific language governing permissions and limitations under the License. #------------------------------------------------------------------------------- -set( KNOWHERE_VERSION 87190cf ) +set( KNOWHERE_VERSION 87190cf ) # Update KNOWHERE_VERSION for the first occurrence set( GIT_REPOSITORY "https://github.com/zilliztech/knowhere.git") if ( INDEX_ENGINE STREQUAL "cardinal" ) set( KNOWHERE_VERSION 87190cf )