Same problem with my gitlab instance, with the exact same update path and result, but for downloading a file directly from a project repository.
- curl -s -o file_to_download https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/path/of/my/project/raw/master/path/to/my/file