Use add content instead of echo

Any kind of piping or echo creates a UCS-2 LE BOM,
and dotenv can't handle this.
https://gitlab.com/gitlab-org/gitlab/-/issues/212629#note_430278657

I've also added back in branch trigger so latest links still work
This commit is contained in:
Zedifus 2022-06-16 21:09:27 +01:00
parent cae8f2697f
commit f4ea5b81b1

View File

@ -49,6 +49,7 @@ win-prod-build:
paths:
- .venv/
rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
- if: $CI_COMMIT_TAG
environment:
name: production
@ -72,7 +73,7 @@ win-prod-build:
--collect-all pytz
--collect-all six
after_script:
- echo "JOB_ID=$CI_JOB_ID" >> job.env
- Add-Content -Path job.env -Value "JOB_ID=$CI_JOB_ID"
# Download latest:
# | https://gitlab.com/crafty-controller/crafty-4/-/jobs/artifacts/master/download?job=win-prod-build