From 20ec9a676c599249f36887e90e6a7463a7e0221b Mon Sep 17 00:00:00 2001 From: guy-huinen Date: Thu, 25 Feb 2021 15:22:34 +0100 Subject: [PATCH 1/7] test: fetch deep --- .github/workflows/diem-dashboard.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/diem-dashboard.yml b/.github/workflows/diem-dashboard.yml index 2ae2294..26300ba 100644 --- a/.github/workflows/diem-dashboard.yml +++ b/.github/workflows/diem-dashboard.yml @@ -32,6 +32,9 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 + with: + # We need to fetch with a depth of 2 for pull_request so we can do HEAD^2 + fetch-depth: 2 - uses: 8398a7/action-slack@v3 with: @@ -49,7 +52,6 @@ jobs: }] } env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required if: always() @@ -71,5 +73,4 @@ jobs: author_name: Diem CI env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required - GITHUB_TOKEN: ${{ github.token }} if: always() From 426704a5fbff00ab7f9eaf4c53bce5324d4902c1 Mon Sep 17 00:00:00 2001 From: guy-huinen Date: Thu, 25 Feb 2021 15:22:53 +0100 Subject: [PATCH 2/7] chore: commit bump --- applications/dashboard/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/dashboard/package.json b/applications/dashboard/package.json index 62f2f5c..1d114d0 100644 --- a/applications/dashboard/package.json +++ b/applications/dashboard/package.json @@ -1,7 +1,7 @@ { "name": "dashboard-ui", "description": "Home Module for Leap", - "version": "1.0.5", + "version": "1.0.6", "author": "guy_huinen@be.ibm.com", "config": { "sitename": "Expo", From 62c6513b94e0f0d53970390c890a535ab91448d7 Mon Sep 17 00:00:00 2001 From: guy-huinen Date: Thu, 25 Feb 2021 15:40:24 +0100 Subject: [PATCH 3/7] chore: test 1 --- .github/workflows/diem-dashboard.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/diem-dashboard.yml b/.github/workflows/diem-dashboard.yml index 26300ba..901030b 100644 --- a/.github/workflows/diem-dashboard.yml +++ b/.github/workflows/diem-dashboard.yml @@ -49,6 +49,10 @@ jobs: attachments: [{ color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning', text: `${process.env.AS_WORKFLOW} of ${process.env.AS_AUTHOR.split(/[<@]/)[1]}'s "${process.env.AS_MESSAGE}" in ${process.env.AS_REF.replace('refs/heads/', '')} ${'${{ job.status }}' === 'success' ? 'succeeded' : '${{ job.status }}' === 'failure' ? 'failed' : '${{ job.status }}'} in ${process.env.AS_TOOK}`, + }, + { + color: 'good', + text: `${toJSON(process.env)}`, }] } env: From b16287c1e9a80a2494cc48acc38c86ba04a99016 Mon Sep 17 00:00:00 2001 From: guy-huinen Date: Thu, 25 Feb 2021 15:41:47 +0100 Subject: [PATCH 4/7] chore: test --- .github/workflows/diem-dashboard.yml | 4 ++++ applications/dashboard/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/diem-dashboard.yml b/.github/workflows/diem-dashboard.yml index 901030b..2fbd5e0 100644 --- a/.github/workflows/diem-dashboard.yml +++ b/.github/workflows/diem-dashboard.yml @@ -53,6 +53,10 @@ jobs: { color: 'good', text: `${toJSON(process.env)}`, + }, + { + color: 'good', + text: `${toJSON(github.event)}`, }] } env: diff --git a/applications/dashboard/package.json b/applications/dashboard/package.json index 1d114d0..33e6b3e 100644 --- a/applications/dashboard/package.json +++ b/applications/dashboard/package.json @@ -1,7 +1,7 @@ { "name": "dashboard-ui", "description": "Home Module for Leap", - "version": "1.0.6", + "version": "1.0.7", "author": "guy_huinen@be.ibm.com", "config": { "sitename": "Expo", From 4ae894e84b0d98f1cceb3c4abdf53b786c147760 Mon Sep 17 00:00:00 2001 From: guy-huinen Date: Thu, 25 Feb 2021 15:43:30 +0100 Subject: [PATCH 5/7] chore: test --- .github/workflows/diem-dashboard.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/diem-dashboard.yml b/.github/workflows/diem-dashboard.yml index 2fbd5e0..7bef0e9 100644 --- a/.github/workflows/diem-dashboard.yml +++ b/.github/workflows/diem-dashboard.yml @@ -52,11 +52,11 @@ jobs: }, { color: 'good', - text: `${toJSON(process.env)}`, + text: `${toJson(process.env)}`, }, { color: 'good', - text: `${toJSON(github.event)}`, + text: `${toJson(github.event)}`, }] } env: From ef813e9aa864300fc6537aa8f0ee7e9b68ca434d Mon Sep 17 00:00:00 2001 From: guy-huinen Date: Thu, 25 Feb 2021 15:46:55 +0100 Subject: [PATCH 6/7] chore: another try --- .github/workflows/diem-dashboard.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/diem-dashboard.yml b/.github/workflows/diem-dashboard.yml index 7bef0e9..c1c2702 100644 --- a/.github/workflows/diem-dashboard.yml +++ b/.github/workflows/diem-dashboard.yml @@ -36,6 +36,16 @@ jobs: # We need to fetch with a depth of 2 for pull_request so we can do HEAD^2 fetch-depth: 2 + - name: Dump steps context + env: + STEPS_CONTEXT: ${{ toJson(steps) }} + run: echo "$STEPS_CONTEXT" + + - name: Dump env + env: + ENV_CONTEXT: ${{ toJson(process.env) }} + run: echo "$ENV_CONTEXT" + - uses: 8398a7/action-slack@v3 with: status: custom @@ -49,14 +59,6 @@ jobs: attachments: [{ color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning', text: `${process.env.AS_WORKFLOW} of ${process.env.AS_AUTHOR.split(/[<@]/)[1]}'s "${process.env.AS_MESSAGE}" in ${process.env.AS_REF.replace('refs/heads/', '')} ${'${{ job.status }}' === 'success' ? 'succeeded' : '${{ job.status }}' === 'failure' ? 'failed' : '${{ job.status }}'} in ${process.env.AS_TOOK}`, - }, - { - color: 'good', - text: `${toJson(process.env)}`, - }, - { - color: 'good', - text: `${toJson(github.event)}`, }] } env: From 008b2baabb416804e0cf49bba5da343bb7c57a58 Mon Sep 17 00:00:00 2001 From: guy-huinen Date: Thu, 25 Feb 2021 15:48:31 +0100 Subject: [PATCH 7/7] chore: test --- applications/dashboard/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/dashboard/package.json b/applications/dashboard/package.json index 33e6b3e..f1cc0ee 100644 --- a/applications/dashboard/package.json +++ b/applications/dashboard/package.json @@ -1,7 +1,7 @@ { "name": "dashboard-ui", "description": "Home Module for Leap", - "version": "1.0.7", + "version": "1.0.8", "author": "guy_huinen@be.ibm.com", "config": { "sitename": "Expo",