Skip to content

Commit e1d24be

Browse files
committed
[ci:fix] Run only on pull requests
1 parent f7bf34a commit e1d24be

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/bot-ci-failure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818
jobs:
1919
find-pr:
2020
runs-on: ubuntu-latest
21-
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
21+
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event == 'pull_request' }}
2222
outputs:
2323
pr_number: ${{ steps.pr.outputs.number }}
2424
pr_author: ${{ steps.pr.outputs.author }}

docs/developer/reusable-github-utils.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ job:
394394
jobs:
395395
find-pr:
396396
runs-on: ubuntu-latest
397-
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
397+
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event == 'pull_request' }}
398398
outputs:
399399
pr_number: ${{ steps.pr.outputs.number }}
400400
pr_author: ${{ steps.pr.outputs.author }}

0 commit comments

Comments
 (0)