Amend file and copy in same repo?

Hi all,

This is what I want to achieve using a Gitlab runner:

when a new file is added to the project, the file is renamed (both original and copy) and copied to a sub directory in the project.

Any help very much appreciated!