2022-01-20 23:09:34 +00:00
|
|
|
name: discord
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_run:
|
2022-01-24 04:19:25 +00:00
|
|
|
workflows: ["ContinuousIntegration", "Build and Publish", "Build and publish multiarch" ]
|
2022-01-20 23:09:34 +00:00
|
|
|
types:
|
|
|
|
- completed
|
|
|
|
|
|
|
|
env:
|
|
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
discord:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
|
|
- name: on-success
|
|
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
|
|
uses: Ilshidur/action-discord@master
|
|
|
|
with:
|
2022-01-21 02:52:48 +00:00
|
|
|
args: "Github repo: ${{ github.repository }}\n- Branch: ${{ github.event.workflow_run.head_branch }}\n- [Link: to Actions](<${{ github.event.workflow_run.html_url }}>)\n- Status: 🎉 ${{ github.event.workflow_run.conclusion }} 🍏"
|
2022-01-20 23:09:34 +00:00
|
|
|
- name: on-failure
|
|
|
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
|
|
|
uses: Ilshidur/action-discord@master
|
|
|
|
with:
|
2022-01-21 02:52:48 +00:00
|
|
|
args: "Github repo: ${{ github.repository }}\n- Branch: ${{ github.event.workflow_run.head_branch }}\n- [Link: to Actions](<${{ github.event.workflow_run.html_url }}>)\n- Status: 🤔 ${{ github.event.workflow_run.conclusion }} 💣💥"
|