From e6879dba638afa867a2975e5fc9ef6342d8d562d Mon Sep 17 00:00:00 2001 From: Mark Sinclair Date: Fri, 1 Oct 2021 15:47:57 +0100 Subject: [PATCH] Network Explorer: GitHub Actions - handle `env` differently --- .github/workflows/network-explorer.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/network-explorer.yml b/.github/workflows/network-explorer.yml index ef24a74e8f..da1cee4451 100644 --- a/.github/workflows/network-explorer.yml +++ b/.github/workflows/network-explorer.yml @@ -15,8 +15,6 @@ defaults: jobs: build: runs-on: ubuntu-latest - env: - HANDLEBARS_JSON_DATA: "{ \"github\": ${{ toJSON(github) }}, \"env\": ${{ toJSON(env) }}, \"secrets\": { \"NYM_CI_WWW_BASE\": ${{ secrets.NYM_CI_WWW_BASE }} } }" steps: - uses: actions/checkout@v2 - name: Install rsync @@ -45,12 +43,18 @@ jobs: - name: Setup message creation run: npm install -g hbs-cli - name: Output message JSON + 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 - 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 - 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 - name: Keybase Notification uses: docker://keybaseio/client:stable