Skip to content

Commit

Permalink
chore: send message at the end of the release
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedHamouGisaia committed Jan 30, 2025
1 parent 05b78bc commit 17fbe5c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions release-actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ usage(){
exit 1
}

send_chat_message(){
MESSAGE=$1
if [ -z "$GOOGLE_CHAT_RELEASE_CHANEL" ] ; then
echo "Environement variable GOOGLE_CHAT_RELEASE_CHANEL is not definied ... skipping message publishing"
else
DATA='{"text":"'${MESSAGE}'"}'
echo $DATA
curl -X POST --header "Content-Type:application/json" $GOOGLE_CHAT_RELEASE_CHANEL -d "${DATA}"
fi
}


# ARGUMENTS $1 = VERSION $2 = ref_branch $3 stage $4 stage iteration (for beta & rc)
releaseProd(){
Expand Down Expand Up @@ -104,6 +115,10 @@ releaseProd(){
git commit -m "$commit_message" --allow-empty
git push origin "$BRANCH"
echo "Well done :)"
if [ "$STAGE_LOCAL" == "stable" ] || [ "$STAGE_LOCAL" == "rc" ];
then
send_chat_message "Release of arlas-web-core, version ${VERSION}"
fi

}

Expand Down

0 comments on commit 17fbe5c

Please sign in to comment.