-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature-serverless-framework-deployment
- Loading branch information
Showing
13 changed files
with
1,992 additions
and
34 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
590 changes: 590 additions & 0 deletions
590
.github/workflows/continuous-benchmarking-image-size.yml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
.github/workflows/continuous-benchmarking-notifications.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: Continuous benchmarking - Send notifications | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ Continuous benchmarking - Baseline experiments, Continuous benchmarking - Image size experiments ] | ||
types: [completed] | ||
|
||
jobs: | ||
on-failure: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send Slack message using Incoming Webhooks after successful scheduled experiment run | ||
uses: slackapi/[email protected] | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
with: | ||
payload: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "header", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "Scheduled experiment (Workflow status)" | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": "*Workflow Name*: ${{ github.event.workflow_run.name }}" | ||
}, | ||
{ | ||
"type": "mrkdwn", | ||
"text": "*Workflow Status*: ${{ github.event.workflow_run.conclusion }} ✅" | ||
}, | ||
{ | ||
"type": "mrkdwn", | ||
"text": "*URL*: ${{ github.event.workflow_run.html_url }}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
- name: Send Slack message using Incoming Webhooks after failed scheduled experiment run | ||
uses: slackapi/[email protected] | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
with: | ||
payload: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "header", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "Scheduled experiment (Workflow status)" | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": "*Workflow Name*: ${{ github.event.workflow_run.name }}" | ||
}, | ||
{ | ||
"type": "mrkdwn", | ||
"text": "*Workflow Status*: ${{ github.event.workflow_run.conclusion }} ❌" | ||
}, | ||
{ | ||
"type": "mrkdwn", | ||
"text": "*URL*: ${{ github.event.workflow_run.html_url }}" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "section", | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": "<!channel>" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |
Oops, something went wrong.