mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
name: discord
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: ["ContinuousIntegration", "PullRequest", "Build and Publish", "Build and publish multiarch" ]
|
|
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:
|
|
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 }} 🍏"
|
|
- name: on-failure
|
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
|
uses: Ilshidur/action-discord@master
|
|
with:
|
|
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 }} 💣💥"
|