Symlinks end up as text files in artifacts
Summary
When an artifact path is a symlink, instead of the actual file being added to the artifacts, a text file is added to the artifacts, containing the target path of the symlink.
Example Project
.gitlab-ci.yml: https://gitlab.com/AndreKR/symlink-example/blob/master/.gitlab-ci.yml
Job artifacts: https://gitlab.com/AndreKR/symlink-example/-/jobs/203510819/artifacts/browse
What is the current bug behavior?
There is one file called "output" in the artifacts, containing the text "/app/output".
What is the expected correct behavior?
There should be a directory "output" containing three files.