I think these do what you want and put the cursor in a reasonable place when they’re done. For safety, I’ve set them up so they don’t do anything if text is selected.
In case it helps, the ThoughtAsylum - Export/Import/Share action group has a TAD-Copy Current Line(s) action that will copy the lines the cursor selection is on.