From a041111206e831642514cadee4e2b396bc8117f0 Mon Sep 17 00:00:00 2001 From: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com> Date: Fri, 9 Feb 2024 13:57:46 -0800 Subject: [PATCH] remove regular expression comparison in a GHA script (#25347) --- .github/scripts/changed-files.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/changed-files.sh b/.github/scripts/changed-files.sh index b5bf7f294d..f44c6fc26b 100755 --- a/.github/scripts/changed-files.sh +++ b/.github/scripts/changed-files.sh @@ -35,16 +35,16 @@ if ! files="$(git diff "${base_commit}...${head_commit}" --name-only)"; then fi for file in $(awk -F "/" '{ print $1}' <<< "$files" | uniq); do - if [[ "$file" =~ "changelog" ]]; then + if [[ "$file" == "changelog" ]]; then continue fi - if [[ "$file" =~ "website" ]]; then + if [[ "$file" == "website" ]]; then docs_changed=true continue fi - if [[ "$file" =~ "ui" ]]; then + if [[ "$file" == "ui" ]]; then ui_changed=true continue fi