File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments