diff --git a/.github/workflows/bench-comment.yml b/.github/workflows/bench-comment.yml index ecda3eb539..f89d223059 100644 --- a/.github/workflows/bench-comment.yml +++ b/.github/workflows/bench-comment.yml @@ -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 diff --git a/.github/workflows/qns-comment.yml b/.github/workflows/qns-comment.yml index f1b29184aa..71cbcc805b 100644 --- a/.github/workflows/qns-comment.yml +++ b/.github/workflows/qns-comment.yml @@ -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