11name : Discord notifications
22
33on :
4+ release :
5+ types :
6+ - published
47 workflow_run :
5- workflows : ["ContinuousIntegration", " Build and Publish", "Build and publish multiarch" ]
8+ workflows : ["Build and Publish"]
69 types :
710 - completed
811
@@ -14,13 +17,29 @@ jobs:
1417 runs-on : ubuntu-latest
1518 timeout-minutes : 5
1619 steps :
20+ - name : on-publish
21+ if : github.event_name == 'release' && github.event.action == 'published'
22+ uses : Ilshidur/action-discord@master
23+ with :
24+ args : |
25+ Github repo: [${{ github.repository }}](<${{ github.event.repository.html_url}}>)
26+ Release: [${{ github.event.release.name }}](<${{ github.event.release.html_url }}>)
27+ ${{ github.event.release.body }}
1728 - name : on-success
18- if : ${{ github.event.workflow_run.conclusion == 'success' }}
29+ if : github.event.workflow_run.conclusion == 'success'
1930 uses : Ilshidur/action-discord@master
2031 with :
21- 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 }} 🍏"
32+ args : |
33+ Github repo: ${{ github.repository }}
34+ - Branch: ${{ github.event.workflow_run.head_branch }}
35+ - [Link: to Actions](<${{ github.event.workflow_run.html_url }}>)
36+ - Status: 🎉 ${{ github.event.workflow_run.conclusion }} 🍏
2237 - name : on-failure
23- if : ${{ github.event.workflow_run.conclusion == 'failure' }}
38+ if : github.event.workflow_run.conclusion == 'failure'
2439 uses : Ilshidur/action-discord@master
2540 with :
26- 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 }} 💣💥"
41+ args : |
42+ Github repo: ${{ github.repository }}
43+ - Branch: ${{ github.event.workflow_run.head_branch }}
44+ - [Link: to Actions](<${{ github.event.workflow_run.html_url }}>)
45+ - Status: 🤔 ${{ github.event.workflow_run.conclusion }} 💣💥
0 commit comments