diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 24db24a6da013a66d12644c8cc3561077ee2fc2f..d20dae4ffd1df3ab9f8fc1d5989fbe957d387e81 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -117,10 +117,11 @@ create_release: - curl --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" --upload-file tutorials.zip "$CI_API_V4_URL/projects/$CI_PROJECT_ID/uploads" > upload_response.json - UPLOAD_URL=$(jq -r '.url' upload_response.json) # Extract the uploaded URL path using jq - echo "ZIP File uploaded and accessible at: $UPLOAD_URL" - - release-cli create \ - --name "Release TEST-$CI_COMMIT_REF_NAME" \ - --tag-name "TEST-$CI_COMMIT_REF_NAME" \ - --description "$(echo -e "## Test Release\nThis is a test release from the hotfix branch.")" \ + - | + release-cli create \ + --name "Release TEST-${CI_COMMIT_REF_NAME}" \ + --tag-name "TEST-${CI_COMMIT_REF_NAME}" \ + --description "## Test Release\nThis is a test release from the hotfix branch." \ --assets-link "{\"name\":\"tutorials.zip\", \"url\":\"${CI_PROJECT_URL}${UPLOAD_URL}\"}" rules: - if: '$CI_COMMIT_REF_NAME == "hotfix/fix-doc-installation"' # Test only on your hotfix branch