Skip to content
Snippets Groups Projects
Commit a83d45f0 authored by Piotr Sowinski's avatar Piotr Sowinski
Browse files

Merge branch 'feature-NXCALS-7792-modify-release-notes' into 'develop'

NXCALS-7792 modify release notes

Closes NXCALS-7792

See merge request !2082

Changelog: added
parents 8b9a1a79 075b0c76
No related branches found
No related tags found
1 merge request!2082NXCALS-7792 modify release notes
......@@ -103,6 +103,18 @@ prepare_release_notes:
- .gitlab:prepare-release-notes
rules:
- !reference [ .staging_rules, on_staging ]
script:
- !reference [ .common:scripts, declare_function:check_variable ]
- check_variable GITLAB_REPO_API_TOKEN
- if [[ $CI_COMMIT_BRANCH ]]; then BRANCH_ARG="&branch=$CI_COMMIT_BRANCH"; else BRANCH_ARG=""; fi;
- 'curl --fail-with-body -H "PRIVATE-TOKEN: $GITLAB_REPO_API_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/repository/changelog?version=${VERSION}${BRANCH_ARG}" | tee .raw_out | jq -r .notes > release_notes.md'
- 'sed -E "s|(- )(\[Merge.*(NXCALS-[0-9]+).*)|\1[\3](https://its.cern.ch/jira/browse/\3), \2|" release_notes.md > release_notes_with_urls.md'
- mv release_notes_with_urls.md release_notes.md
- cat release_notes.md
- cat .raw_out
artifacts:
paths:
- release_notes.md
publish_to_artifactory:staging:
stage: publish
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment