Skip to content

Commit 569b274

Browse files
committed
Add verbose output about the copy of inputs
Signed-off-by: tdruez <[email protected]>
1 parent de0cdfa commit 569b274

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

action.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,21 @@ runs:
123123
mkdir -p "$DESTINATION_PATH"
124124
125125
if [ -d "$SOURCE_PATH" ]; then
126-
cp -r "$SOURCE_PATH"/* "$DESTINATION_PATH"
127-
elif [ -f "$SOURCE_PATH" ]; then
126+
if [ "$(ls -A "$SOURCE_PATH")" ]; then
127+
echo "Copying contents of directory: $SOURCE_PATH → $DESTINATION_PATH"
128+
cp -r "$SOURCE_PATH"/* "$DESTINATION_PATH"
129+
else
130+
echo "Input directory '$SOURCE_PATH' is empty, nothing to copy."
131+
fi
132+
else
133+
echo "Copying file: $SOURCE_PATH → $DESTINATION_PATH"
128134
cp "$SOURCE_PATH" "$DESTINATION_PATH"
129135
fi
130136
137+
echo ""
138+
echo "✅ Input files now in: $DESTINATION_PATH"
139+
ls -lh "$DESTINATION_PATH"
140+
131141
- name: Run the pipelines
132142
shell: bash
133143
run: scanpipe execute --project ${{ inputs.project-name }} --no-color

0 commit comments

Comments
 (0)