We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b13e808 commit 1b2133fCopy full SHA for 1b2133f
1 file changed
.github/workflows/deploy.yml
@@ -30,5 +30,13 @@ jobs:
30
- name: Deploy Site
31
run: ssh my-droplet '~/redeploy-site.sh'
32
33
- - name: Discord Webhook
34
- run: curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=🚀 Deployment Successful"
+ - name: Discord Webhook Success
+ run: curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=🚀 Deployment Successful"
35
+
36
+ deploy-fail:
37
+ runs-on: ubuntu-latest
38
+ needs: [deploy]
39
+ if: ${{ always() && contains(needs.*.result, 'failure') }}
40
+ steps:
41
+ - name: Discord Webhook Fail
42
+ run: curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=🚨 Deployment Failed"
0 commit comments