Skip to content

Commit

Permalink
Merge pull request #21 from huineng/gh
Browse files Browse the repository at this point in the history
Guy Testing message
  • Loading branch information
huineng authored Feb 25, 2021
2 parents 2639745 + 7838e2c commit 5dc15dd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/diem-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,39 @@ jobs:
# We need to fetch with a depth of 2 for pull_request so we can do HEAD^2
fetch-depth: 2

- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJSON(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump env context
env:
ENV_CONTEXT: ${{ toJSON(job) }}
run: echo "$ENV_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
STEPS_CONTEXT: ${{ toJSON(steps) }}
run: echo "$STEPS_CONTEXT"

- name: Dump env
- name: Dump runner context
env:
ENV_CONTEXT: ${{ toJson(process.env) }}
run: echo "$ENV_CONTEXT"
RUNNER_CONTEXT: ${{ toJSON(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJSON(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJSON(matrix) }}
run: echo "$MATRIX_CONTEXT"

- name: Get Commit Message
run: |
MSG=$(git log --format=%B -n 1 ${{ github.event.after }})
echo "${MSG}"
- uses: 8398a7/action-slack@v3
with:
Expand All @@ -55,7 +79,6 @@ jobs:
username: 'Diem GitHub Action',
icon_emoji: ':diem:',
channel: '#diem-ci',
author_name: 'Diem CI',
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}`,
Expand Down
2 changes: 1 addition & 1 deletion applications/dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dashboard-ui",
"description": "Home Module for Leap",
"version": "1.0.8",
"version": "1.0.1",
"author": "[email protected]",
"config": {
"sitename": "Expo",
Expand Down

0 comments on commit 5dc15dd

Please sign in to comment.