Skip to content
Snippets Groups Projects
Commit eea1cdc9 authored by ERKEN EFE's avatar ERKEN EFE
Browse files

:hammer: CONFIG: Update release pipeline

Updated the format of the generated release description in
GitLab release pipeline to also include the dates of the commits.

Also small formatting.
parent a6d619bd
Branches main
No related merge requests found
......@@ -33,9 +33,9 @@ release_job:
- git config --global --add safe.directory /builds/erken/sokoban
script:
- echo "running release_job for $CI_COMMIT_TAG"
- printf "# Changes in this release\n" > CHANGELOG.md
- printf "# Changes in this release\n\n" > CHANGELOG.md
- LAST_TAGS=$(git for-each-ref --sort='-*committerdate' --count=2 --format '%(refname:short)' refs/tags)
- git log --pretty="- %s" --no-merges --reverse $(echo $LAST_TAGS | tail -n 1)..$(echo $LAST_TAGS | head -n 1) >> CHANGELOG.md
- git log --pretty="- [%as] %s" --no-merges --reverse $(echo $LAST_TAGS | tail -n 1)..$(echo $LAST_TAGS | head -n 1) >> CHANGELOG.md
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: $CI_COMMIT_TAG
name: 'Release $CI_COMMIT_TAG'
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment