Make an hashtag in toot-from-ci, with first letter uppercase

This commit is contained in:
Luc Didry 2018-12-09 12:06:57 +01:00
parent 72389fbc1b
commit e42242cdac
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
1 changed files with 4 additions and 2 deletions

View File

@ -82,7 +82,9 @@ pouet-it:
stage: tag
script:
- cd /opt/pouet-it-from-ci
- export MESSAGE=$(echo -e "I just released a new version of ${CI_PROJECT_NAME} !\n${CI_PROJECT_URL}/tags/${CI_COMMIT_TAG}")
# Make the project name first letter uppercase
- export project="$(tr '[:lower:]' '[:upper:]' <<< ${CI_PROJECT_NAME:0:1})${CI_PROJECT_NAME:1}"
- export MESSAGE=$(echo -e "I just released a new version of #${project}!\n${CI_PROJECT_URL}/tags/${CI_COMMIT_TAG}")
- carton exec ./pouet-it-from-ci.pl
only:
- tags
- tags