mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 04:16:31 +02:00
remove regular expression comparison in a GHA script (#25347)
This commit is contained in:
parent
baac570898
commit
a041111206
6
.github/scripts/changed-files.sh
vendored
6
.github/scripts/changed-files.sh
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user