From 9482a757e2aa489af364b85138c7d6f7ea5c73a9 Mon Sep 17 00:00:00 2001 From: "chen, suyue" Date: Mon, 12 Aug 2024 10:46:43 +0800 Subject: [PATCH] Update Microservice CI trigger path (#458) Signed-off-by: chensuyue --- .github/workflows/_get-test-matrix.yml | 2 +- .github/workflows/pr-microservice-test.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/_get-test-matrix.yml b/.github/workflows/_get-test-matrix.yml index 6860f8e9ba..09be978cb5 100644 --- a/.github/workflows/_get-test-matrix.yml +++ b/.github/workflows/_get-test-matrix.yml @@ -45,7 +45,7 @@ jobs: merged_commit=$(git log -1 --format='%H') changed_files="$(git diff --name-only ${base_commit} ${merged_commit} | \ - grep 'comps/' | grep -vE '*.md|*.txt|comps/cores')" || true + grep 'comps/' | grep -vE '*.md|comps/cores')" || true services=$(printf '%s\n' "${changed_files[@]}" | cut -d'/' -f2 | grep -vE '*.py' | sort -u) || true run_matrix="{\"include\":[" for service in ${services}; do diff --git a/.github/workflows/pr-microservice-test.yml b/.github/workflows/pr-microservice-test.yml index 9abdce833e..a9a6cb26c6 100644 --- a/.github/workflows/pr-microservice-test.yml +++ b/.github/workflows/pr-microservice-test.yml @@ -11,7 +11,6 @@ on: - comps/** - tests/** - "!**.md" - - "!**.txt" - .github/workflows/pr-microservice-test.yml # If there is a new commit, the previous jobs will be canceled