Skip to content

Commit

Permalink
Don't show redundent details on push vs pull request.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon committed Dec 4, 2020
1 parent 3b69456 commit ff360d7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci-main.yml
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit ff360d7

Please sign in to comment.