fix: add color based on result

This commit is contained in:
Roman 2024-01-18 19:19:33 +08:00
parent 3ec03714f7
commit 86de3cd07e
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75

View File

@ -87,12 +87,12 @@ jobs:
cat $GITHUB_STEP_SUMMARY
echo EOF
} >> $GITHUB_ENV
-
- name: Send report to Discord
uses: rjstone/discord-webhook-notify@v1
if: always()
with:
severity: info
severity: "{{ job.status == 'success' && 'info' || 'error' }}"
username: ${{ github.workflow }}
description: "## Job Result: ${{ job.status }}"
details: ${{ env.JOB_SUMMARY }}