Skip to content
Snippets Groups Projects
Verified Commit 5060f420 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: working on ci pipeline

parent 888b3aff
No related branches found
No related tags found
No related merge requests found
......@@ -33,14 +33,14 @@ in
echo_hint "Version $(echo $publishingResult | jq .version)"
echo_hint "SHA Sum: $(echo $publishingResult | jq .shasum)"
echo_hint "Files: $(echo $publishingResult | jq .entryCount)"
set -x
if [ "$(echo $publishingResult | jq .id)" == null ] ; then
echo_fail "Failed to publish the project."
json=$(jq -n \
--arg name "$(echo $publishingResult | jq -r .name)" \
--arg version "$(echo $publishingResult | jq -r .version)" \
'{icon_emoji: ":x:", text: ("Failed to publish: " + $name + " " + $version)}')
'{text: ("Oh no, we failed to publish the " + $version + " version of " + $name + " :x:")}')
${pkgs'.curl}/bin/curl --header "Content-Type: application/json" --request POST \
--data "$json" $MATTERMOST_WEBHOOK
......@@ -52,7 +52,7 @@ set -x
json=$(jq -n \
--arg name "$(echo $publishingResult | jq -r .name)" \
--arg version "$(echo $publishingResult | jq -r .version)" \
'{icon_emoji: ":monster:", text: ("Deployed: " + $name + " " + $version)}')
'{icon_emoji: ":monster:", text: ("We have just launched the " + $version + " version of " + $name + "! Give it a try. :rocket:")}')
${pkgs'.curl}/bin/curl --header "Content-Type: application/json" --request POST \
--data "$json" $MATTERMOST_WEBHOOK
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment