From 9ecc7d557383e6d31f9436c3bd61709db466019f Mon Sep 17 00:00:00 2001 From: WinterMyst <22961076-wintermyst@users.noreply.gitlab.com> Date: Mon, 23 Sep 2024 16:09:50 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee86028..f033bc6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,6 +42,10 @@ release: # Install release-cli - curl -sSL -o /usr/local/bin/release-cli https://gitlab.com/gitlab-org/release-cli/-/releases/v0.17.0/downloads/release-cli-linux-amd64 - chmod +x /usr/local/bin/release-cli + - release-cli --version + - git fetch --all + - git switch master + - git branch --set-upstream-to=origin/master master script: # Check if VERSION is provided - | @@ -57,6 +61,7 @@ release: # Update system.json with the release URL - | sed -i "s|\"download\":.*|\"download\": \"https://gitlab.com/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/-/releases/v$VERSION/download\",|" system.json + - grep '"download":' system.json - git config --global user.name "GitLab CI" - git config --global user.email "ci@gitlab.com" - git add system.json