Skip to content

Commit

Permalink
Only comment after successful CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Mar 13, 2024
1 parent bc262a5 commit 3325cdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/bench-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
permissions:
pull-requests: write
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request'
if: |
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pr-comment
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/qns-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ jobs:
permissions:
pull-requests: write
runs-on: ubuntu-latest
# if: >
# github.event.workflow_run.event == 'pull_request' &&
# github.event.workflow_run.conclusion == 'failure'
if: github.event.workflow_run.event == 'pull_request'
if: |
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'failure'
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pr-comment
Expand Down

0 comments on commit 3325cdb

Please sign in to comment.