mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Merge branch 'devops/release-changelog-trimming' into 'dev'
Trim changelog before including in release description See merge request crafty-controller/crafty-4!430
This commit is contained in:
commit
246ad37b34
@ -11,13 +11,15 @@ release:
|
|||||||
script:
|
script:
|
||||||
- echo "Build Job $JOB_ID"
|
- echo "Build Job $JOB_ID"
|
||||||
- echo "Running release job for tag $CI_COMMIT_TAG"
|
- echo "Running release job for tag $CI_COMMIT_TAG"
|
||||||
release:
|
- |
|
||||||
name: Crafty $CI_COMMIT_TAG
|
full_changelog=$(cat CHANGELOG.md)
|
||||||
tag_name: $CI_COMMIT_TAG
|
trimmed_changelog="${full_changelog%%<br><br>*}"
|
||||||
description: ./CHANGELOG.md
|
echo "$trimmed_changelog"
|
||||||
ref: $CI_COMMIT_TAG
|
- release-cli create
|
||||||
assets:
|
--name "Crafty $CI_COMMIT_TAG"
|
||||||
links:
|
--description "$trimmed_changelog"
|
||||||
- name: Windows Package
|
--tag-name "$CI_COMMIT_TAG"
|
||||||
url: "$CI_PROJECT_URL/-/jobs/$JOB_ID/artifacts/download"
|
--ref "$CI_COMMIT_TAG"
|
||||||
link_type: package
|
--assets-link "{\"url\":\"$CI_PROJECT_URL/-/jobs/$JOB_ID/artifacts/download\",\"name\":\"Windows Package\",\"link_type\":\"package\"}"
|
||||||
|
# Having to use raw release-cli instead of yaml syntax because variables are not expanding
|
||||||
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/237893#note_403465700
|
||||||
|
Loading…
Reference in New Issue
Block a user