Skip to content

Commit 13c2df8

Browse files
authored
Ensure input file exists before copying (#35)
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 2c1b7c2 commit 13c2df8

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
@@ -150,7 +150,7 @@ runs:
150150
else
151151
echo "Input directory '$SOURCE_PATH' is empty, nothing to copy."
152152
fi
153-
else
153+
elif [[ -f "$SOURCE_PATH" ]]; then
154154
echo "Copying file: $SOURCE_PATH → $DESTINATION_PATH"
155155
cp "$SOURCE_PATH" "$DESTINATION_PATH"
156156
fi

0 commit comments

Comments
 (0)