Skip to content

Workflow file for this run

run-name: main
on:
push: # TODO: workflow_run
branches:
- main
- 'github-actions'
- 'cesium.com'
jobs:
if_error_or_failure:
runs-on: ubuntu-latest
steps:
- name: message result in slack
id: slack
uses: slackapi/slack-github-action@v1.24.0
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
channel-id: 'test-automation'
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":gh-failed: Commit ${{ github.sha }} on \"${{ github.ref_name }}\" failed"
}
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "See commit"
},
"url": "${{ github.event.head_commit.url }}"
"action_id": "button_1""
}
]
}
]
}