Skip to content

Commit

Permalink
chore: update notify discord job step
Browse files Browse the repository at this point in the history
  • Loading branch information
izzuzantyaf committed Jan 2, 2025
1 parent 9f41df5 commit 48f849f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
echo "$SERVER_SSH_PRIVATE_KEY" > ~/.ssh/id_private_key
chmod 600 ~/.ssh/id_private_key
ssh -i ~/.ssh/id_private_key root@$SERVER_HOST "$SCRIPT"
- name: Notify Discord
if: ${{ !cancelled() }}
run: |
curl -X POST -H "Content-Type: application/json" \
-d '{
"content": "**[DEPLOYMENT ${{ job.status == 'success' && 'SUCCESS' || 'FAILED' }}]**\n\nProject: **Fisdasweb API**\nBranch: `${{ github.ref_name }}`\nJob: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}' ${{ secrets.DISCORD_WEBHOOK }}
# deploy-to-vercel:
# uses: ./.github/workflows/vercel-deploy.yml
# with:
Expand Down

0 comments on commit 48f849f

Please sign in to comment.