remove regular expression comparison in a GHA script (#25347)

This commit is contained in:
Hamid Ghaf 2024-02-09 13:57:46 -08:00 committed by GitHub
parent baac570898
commit a041111206
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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