Oneshot make + notify-tag working
This commit is contained in:
@@ -82,7 +82,7 @@ do
|
||||
fi
|
||||
done
|
||||
|
||||
# tags that changed or was pushed as new
|
||||
# tags that changed or were pushed as new
|
||||
git --git-dir $repodir tag -l | while read tagname
|
||||
do
|
||||
[ -f $DET_TAGS/$tagname ] || touch $DET_TAGS/$tagname
|
||||
@@ -91,15 +91,24 @@ do
|
||||
if ! [ "$oldsha" = "$newsha" ]
|
||||
then
|
||||
# TAG_HASH = $newsha
|
||||
# TAG_NAME = $tagname
|
||||
# TAG_AUTHOR
|
||||
git --git-dir $repodir log $newsha -1 --pretty=format:"%an"
|
||||
author=$(git --git-dir $repodir log $newsha -1 --pretty=format:"%an <%ae>")
|
||||
# PROJECT_NAME = $cloner_project_name
|
||||
|
||||
# call the notify script
|
||||
set +e
|
||||
env TAG_HASH="$newsha" \
|
||||
TAG_NAME="$tagname" \
|
||||
TAG_AUTHOR="$author" \
|
||||
PROJECT_NAME="$cloner_project_name" \
|
||||
notify-tag
|
||||
rc=$?
|
||||
[ $rc -eq 0 ] || echo "Notify $tagname: return code = $rc"
|
||||
set -e
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
||||
|
||||
# save hash to keep things clear
|
||||
#detectorSumPersist $repodir
|
||||
|
||||
|
||||
Reference in New Issue
Block a user