From 5060f4205918d9f40b6bfeb0b565b9c50a34cbe5 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Sun, 23 Jun 2024 19:47:42 +0200 Subject: [PATCH] fix: working on ci pipeline --- nix/scripts/deploy.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/scripts/deploy.nix b/nix/scripts/deploy.nix index aec788783..224ae6eef 100644 --- a/nix/scripts/deploy.nix +++ b/nix/scripts/deploy.nix @@ -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 -- GitLab