From 219706237200077eb65f7884998079eadb5ff2d2 Mon Sep 17 00:00:00 2001 From: Mark Sinclair Date: Mon, 4 Oct 2021 11:22:37 +0100 Subject: [PATCH] Network Explorer: GitHub Actions - notification messages --- .github/workflows/network-explorer.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/network-explorer.yml b/.github/workflows/network-explorer.yml index f63e4c9798..d187888708 100644 --- a/.github/workflows/network-explorer.yml +++ b/.github/workflows/network-explorer.yml @@ -42,16 +42,15 @@ jobs: EXCLUDE: "/dist/, /node_modules/" - name: Setup message creation run: npm install -g hbs-cli + - name: Setup message data + run: | + echo "{ \"github\": ${{ toJSON(github) }}, \"env\": ${{ toJSON(env) }}, \"secrets\": { \"NYM_CI_WWW_BASE\": \"${{ secrets.NYM_CI_WWW_BASE }}\" } }" > message_data.json - name: Create success message if: ${{ success() }} - env: - HANDLEBARS_JSON_DATA: "{ \"github\": ${{ toJSON(github) }}, \"env\": ${{ toJSON(env) }}, \"secrets\": { \"NYM_CI_WWW_BASE\": \"${{ secrets.NYM_CI_WWW_BASE }}\" } }" - run: echo $HANDLEBARS_JSON_DATA | hbs --stdin --stdout .github/workflows/support-files/messages/success > message.txt + run: hbs --data message_data.json --stdout .github/workflows/support-files/messages/success > message.txt - name: Create failure message if: ${{ failure() }} - env: - HANDLEBARS_JSON_DATA: "{ \"github\": ${{ toJSON(github) }}, \"env\": ${{ toJSON(env) }}, \"secrets\": { \"NYM_CI_WWW_BASE\": \"${{ secrets.NYM_CI_WWW_BASE }}\" } }" - run: echo $HANDLEBARS_JSON_DATA | hbs --stdin --stdout .github/workflows/support-files/messages/failure > message.txt + run: hbs --data message_data.json --stdout .github/workflows/support-files/messages/failure > message.txt - name: Keybase Notification uses: docker://keybaseio/client:stable env: @@ -59,4 +58,5 @@ jobs: KEYBASE_PAPERKEY: "${{ secrets.KEYBASE_NYMBOT_PAPERKEY }}" KEYBASE_SERVICE: "1" with: - args: cat message.txt | keybase chat send --channel "#dev-product-ci" ${{ secrets.KEYBASE_NYMBOT_TEAM }} + args: | + cat message.txt | keybase chat send --channel "#dev-product-ci" ${{ secrets.KEYBASE_NYMBOT_TEAM }}