Skip to content

Commit

Permalink
workflow_run
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Sep 19, 2023
1 parent af8ccf5 commit 09e0d3c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
run-name: main
on:
push: # TODO: workflow_run
workflow_run:
workflows: [dev]
types: [completed]
branches:
- main
- 'github-actions'
- 'cesium.com'
jobs:
if_error_or_failure:
runs-on: ubuntu-latest
steps:
- name: message result in slack
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
id: slack
uses: slackapi/slack-github-action@v1.24.0
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
channel-id: 'test-automation'
channel-id: 'cesiumjs'
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":gh-failed: Commit ${{ github.sha }} on \"${{ github.ref_name }}\" failed"
"text": ":gh-failed: Last commit on \"${{ github.ref_name }}\" failed"
}
},
{
Expand Down

0 comments on commit 09e0d3c

Please sign in to comment.