Skip to content

Commit

Permalink
Add success reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
orome committed Nov 6, 2023
1 parent dd700cc commit 14dc2fd
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,20 @@ jobs:
webhook-url: ${{ secrets.DISCORD_CODING_WEBHOOK_URL }}
content: "${{ github.repository }} - [${{ github.actor }}] ${{ github.workflow }} - ${{ steps.failed_job.outputs.FAILED_JOB }} Failed!\n<@${{ secrets.DISCORD_USER_ID }}>"

on_success:

name: Report Success
runs-on: ubuntu-latest
needs: [test, validate_version, validate_tag, publish]
if: ${{ !failure() }}

steps:

# - name: Notify - Start
# uses: tsickert/discord-webhook@v5.3.0
# with:
# webhook-url: ${{ secrets.DISCORD_CODING_WEBHOOK_URL }}
# content: "[${{ github.repository }}] (${{ github.actor }}) ${{ github.workflow }} - started"
- name: Log success
run: echo "Success!"

- name: Post Discord success notification
uses: tsickert/discord-webhook@v5.3.0
with:
webhook-url: ${{ secrets.DISCORD_CODING_WEBHOOK_URL }}
content: "${{ github.repository }} - [${{ github.actor }}] ${{ github.workflow }} - Succeeded!\n<@${{ secrets.DISCORD_USER_ID }}>"

0 comments on commit 14dc2fd

Please sign in to comment.