Skip to content

Commit cb9e0a1

Browse files
committed
Ensure input file exists before copying
Resolves: #33 Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 0336e3d commit cb9e0a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ runs:
165165
else
166166
echo "Input directory '$SOURCE_PATH' is empty, nothing to copy."
167167
fi
168-
else
168+
elif [[ -f "$SOURCE_PATH" ]]; then
169169
echo "Copying file: $SOURCE_PATH → $DESTINATION_PATH"
170170
cp "$SOURCE_PATH" "$DESTINATION_PATH"
171171
fi

0 commit comments

Comments
 (0)