Debug output
This commit is contained in:
@@ -32,10 +32,15 @@ runs:
|
||||
|
||||
if [ $hasChanges = false ]; then
|
||||
diff=$(git diff --name-only $baseCommit HEAD)
|
||||
IFS=',' read -r -a paths <<< "${{ inputs.paths }}"
|
||||
|
||||
echo "Diff between $baseCommit and HEAD:"
|
||||
echo "$diff"
|
||||
|
||||
IFS=',' read -r -a paths <<< "${{ inputs.paths }}"
|
||||
for path in "${paths[@]}"; do
|
||||
echo "Checking for changes in path: $path"
|
||||
if [[ $diff == $path* ]]; then
|
||||
echo "Changes detected in path: $path"
|
||||
hasChanges=true
|
||||
break
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user