From 90e03cf871da3c5a02c19461cc1a2e3e6afe30ee Mon Sep 17 00:00:00 2001 From: shaoqiangcai <79490184+shaoqiangcai@users.noreply.github.com> Date: Mon, 9 Oct 2023 05:00:06 -0500 Subject: [PATCH] Update run_test_cases.yml Adjusting bugs in obtaining versions --- .github/workflows/run_test_cases.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_test_cases.yml b/.github/workflows/run_test_cases.yml index 050f00dc39b..ddb8ec9ff47 100644 --- a/.github/workflows/run_test_cases.yml +++ b/.github/workflows/run_test_cases.yml @@ -106,7 +106,7 @@ jobs: shell: bash run: | set -x - Engine_VERSION=`sed -n "3p" package.json |cut -b 15-17` + Engine_VERSION=`grep -i '"version"' package.json |awk -F "\"" '{print $4}'` AUTOTEST_VERSION="v$Engine_VERSION" TEST_PROJECTS_EXTERNAL="E:/pr-test/cocos-test-projects" CCTEST_PLUGINS="E:/pr-test/TestPlugin" @@ -257,7 +257,7 @@ jobs: shell: bash run: | set -x - Engine_VERSION=`sed -n "3p" package.json |cut -b 15-17` + Engine_VERSION=`grep -i '"version"' package.json |awk -F "\"" '{print $4}'` AUTOTEST_VERSION="v$Engine_VERSION" TEST_PROJECTS_EXTERNAL="../../cocos-test-projects" CCTEST_PLUGINS="../../TestPlugin"