2018-03-02 11:25:49 +01:00
|
|
|
#/bin/bash
|
2018-02-22 22:09:11 +01:00
|
|
|
# notify on tag push (new tag or change)
|
|
|
|
#
|
|
|
|
# Parameters (via env)
|
|
|
|
#
|
|
|
|
# TAG_HASH - hash of tagged commit
|
|
|
|
# TAG_NAME - tag label
|
|
|
|
# TAG_AUTHOR - who authored the tag - if available
|
2018-03-02 11:25:49 +01:00
|
|
|
# TAG_ABBREV - commit abbreviated hash
|
|
|
|
# TAG_LOG - short status line of log
|
2018-02-22 22:09:11 +01:00
|
|
|
# PROJECT_NAME - name of project specified in cloner.cfg
|
|
|
|
echo "TAG: (Name=$TAG_NAME; AUTHOR=$TAG_AUTHOR; SHA: $TAG_HASH), PROJECT: $PROJECT_NAME"
|
2018-03-02 11:25:49 +01:00
|
|
|
echo -e "\t$TAG_ABBREV: $TAG_LOG"
|
2018-02-22 22:09:11 +01:00
|
|
|
|