Don't show redundent details on push vs pull request.
This commit is contained in:
parent
3b69456dd5
commit
ff360d7d95
1 changed files with 9 additions and 1 deletions
10
.github/workflows/ci-main.yml
vendored
10
.github/workflows/ci-main.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue