Skip to content

Commit

Permalink
das-98: notify with benchmark (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity authored Sep 10, 2024
1 parent d7402fb commit a43b553
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ jobs:
uses: singnet/integration-github-mattermost@master
with:
webhook-url: ${{ secrets.SCHEDULED_REPOS_MATTERMOST_WEBHOOK_URL }}
env:
MATTERMOST_MESSAGE: "SUCCESS - CI workflow succeeded in repository ${{ matrix.repo.name }}"
message: |-
SUCCESS - CI workflow succeeded in repository ${{ matrix.repo.name }}
${{ fromJson(steps.running-workflow.outputs.logs).benchmark.performbenchmark && fromJson(steps.running-workflow.outputs.logs).benchmark.performbenchmark != '' && format('Benchmark: {0}', fromJson(steps.running-workflow.outputs.logs).benchmark.performbenchmark) || '' }}
- name: Send failure notification
if: steps.running-workflow.outputs.conclusion != 'success'
Expand All @@ -38,6 +40,7 @@ jobs:
message: |-
FAILURE - CI workflow failed in repository ${{ matrix.repo.name }}
${{ steps.running-workflow.outputs.logs && fromJson(steps.running-workflow.outputs.logs).benchmark.performbenchmark != '' && format('Benchmark: {0}', fromJson(steps.running-workflow.outputs.logs).benchmark.performbenchmark) || '' }}
Details: ${{ steps.running-workflow.outputs.run_url }}
Failed job:
${{ steps.running-workflow.outputs.failed_jobs_display }}
Expand Down

0 comments on commit a43b553

Please sign in to comment.