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