If you always confused with relative and absolute paths in CI/CD pipelines, I would suggest you should always go for relative path. Why?
80-85% CI/CD provider keeps their pwd to the repository itself and there are lot of things happening behind the scenes for running that pipeline job.
So, best option is to go with relative path.
There is no hard-and-fast rule to follow here, just follow what works for you.