From e42242cdacfd5cac3ee62a4463ca965dfd8fb7e7 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Sun, 9 Dec 2018 12:06:57 +0100 Subject: [PATCH] Make an hashtag in toot-from-ci, with first letter uppercase --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e32961181..ca813b6ce 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file + - tags