1
0

Fix path check for linux

This commit is contained in:
2026-04-09 20:48:24 +02:00
parent a9ea3670cc
commit 24c229ae8e

View File

@@ -31,15 +31,17 @@ runs:
fi fi
if [ $hasChanges = false ]; then if [ $hasChanges = false ]; then
diff=$(git diff --name-only $baseCommit HEAD)
IFS=',' read -r -a paths <<< "${{ inputs.paths }}" IFS=',' read -r -a paths <<< "${{ inputs.paths }}"
diff=$(git diff --name-only $baseCommit HEAD)
while IFS= read -r line; do
for path in "${paths[@]}"; do for path in "${paths[@]}"; do
if [[ $diff == $path* ]]; then if [[ $line == $path* ]]; then
hasChanges=true hasChanges=true
break break 2
fi fi
done done
done <<< "$diff"
fi fi
echo "OUT: has-changes=$hasChanges" echo "OUT: has-changes=$hasChanges"