Update .gitlab-ci.yml file
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user