From e48b9ebe0df2b46f340ca2196cca4bd6da2f265e Mon Sep 17 00:00:00 2001 From: "Siyao (Jane) He" Date: Thu, 16 May 2024 00:56:44 -0700 Subject: [PATCH] use regex --- .github/workflows/client-compatibility.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/client-compatibility.yml b/.github/workflows/client-compatibility.yml index bd02918..cdbb64f 100644 --- a/.github/workflows/client-compatibility.yml +++ b/.github/workflows/client-compatibility.yml @@ -33,6 +33,6 @@ jobs: - name: Run client app run: | cd $GITHUB_WORKSPACE/client - sed -i -E "s|\(\)[^<]*\(\)|\1${{ matrix.driver_version }}\2|" pom.xml + sed -i "s|\.*<\/driver.version>|{{ matrix.driver_version }}<\/driver.version>|" pom.xml mvn compile exec:java -Dexec.mainClass="org.example.Main"