Don't show redundent details on push vs pull request.

This commit is contained in:
Pentarctagon 2020-12-03 22:49:28 -06:00 committed by Pentarctagon
parent 3b69456dd5
commit ff360d7d95

View file

@ -20,7 +20,7 @@ jobs:
steps:
- uses: technote-space/workflow-conclusion-action@v2
- uses: rjstone/discord-webhook-notify@v1
if: env.WORKFLOW_CONCLUSION == 'failure'
if: env.WORKFLOW_CONCLUSION == 'failure' && github.event_name == 'pull_request'
with:
severity: error
webhookUrl: ${{ secrets.DISCORD_CI_WEBHOOK }}
@ -30,6 +30,14 @@ jobs:
ref - ${{ github.ref }}
base_ref - ${{ github.base_ref }}
head_ref - ${{ github.head_ref }}
committer - ${{ github.event_name }}
- uses: rjstone/discord-webhook-notify@v1
if: env.WORKFLOW_CONCLUSION == 'failure' && github.event_name == 'push'
with:
severity: error
webhookUrl: ${{ secrets.DISCORD_CI_WEBHOOK }}
details: |-
committer - ${{ github.event_name }}
ubuntu-2004-scons-gcc-release-lto:
runs-on: ubuntu-20.04