From f4ea5b81b19a91a18a3b9b1ad5b12d661b1e7dbb Mon Sep 17 00:00:00 2001 From: Zedifus Date: Thu, 16 Jun 2022 21:09:27 +0100 Subject: [PATCH] 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 --- .gitlab/windows-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab/windows-build.yml b/.gitlab/windows-build.yml index 0269c0c0..75555151 100644 --- a/.gitlab/windows-build.yml +++ b/.gitlab/windows-build.yml @@ -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