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

Modify README example for properly hashtaging the project name

parent eae61609
Pipeline #94864 passed with stage
in 14 seconds
......@@ -9,7 +9,7 @@ pouet-it:
script:
- cd /opt/pouet-it-from-ci
- 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}")
- 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.4 2018-12-09
- Modify README example for properly hashtaging the project name
0.0.3 2018-12-09
- Add instructions in README for uppercasing the first letter of the project name
......
......@@ -25,7 +25,7 @@ pouet-it:
#- 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}")
- 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