Verified Commit eae61609 authored by Luc Didry's avatar Luc Didry
Browse files

Add instructions in README for uppercasing the first letter of the project name

parent 4b7c30c1
Pipeline #94863 passed with stage
in 14 seconds
......@@ -8,7 +8,8 @@ pouet-it:
stage: tags
script:
- cd /opt/pouet-it-from-ci
- export MESSAGE=$(echo -e "Je viens de sortir ${CI_PROJECT_NAME} en version ${CI_COMMIT_TAG} !\n${CI_PROJECT_URL}/tags/${CI_COMMIT_TAG}")
- export project="$(echo $CI_PROJECT_NAME | perl -p -e 's/(?:^(.)|-(.))/\U$1\U$2/g')"
- export MESSAGE=$(echo -e "Je viens de sortir \#${project} en version ${CI_COMMIT_TAG} !\n${CI_PROJECT_URL}/tags/${CI_COMMIT_TAG}")
- carton exec ./pouet-it-from-ci.pl
only:
- tags
......
Revision history for Pouet it from CI
0.0.3 2018-12-09
- Add instructions in README for uppercasing the first letter of the project name
0.0.2 2018-12-08
- Add changelog
- Add changelog publishing job in CI
......
......@@ -20,7 +20,12 @@ pouet-it:
image: hatsoftwares/pouet-it-from-ci:latest
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}")
# If you want to uppercase the first letter of your project, uncomment following lines and use ${project} instead of ${CI_PROJECT_NAME}
# in the export MESSAGE line
#- export project="$(tr '[:lower:]' '[:upper:]' <<< ${CI_PROJECT_NAME:0:1})${CI_PROJECT_NAME:1}"
# If you have dashes in the name of your project, you can use the following line to remove them and uppercase the first letter of each word
#- export project="$(echo $CI_PROJECT_NAME | perl -p -e 's/(?:^(.)|-(.))/\U$1\U$2/g')"
- export MESSAGE=$(echo -e "I just released a new version of #${CI_PROJECT_NAME}!\n${CI_PROJECT_URL}/tags/${CI_COMMIT_TAG}")
- carton exec ./pouet-it-from-ci.pl
only:
- tags
......
Markdown is supported
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