From 093dc2d1c92dd7fdea74bb1ccc2208556316e2a6 Mon Sep 17 00:00:00 2001 From: Uiolee <22849383+uiolee@users.noreply.github.com> Date: Fri, 19 Apr 2024 23:13:29 +0800 Subject: [PATCH] ci(comment): fix wrong condition (#5471) fix the error which is introduced by #5454 --- .github/workflows/commenter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commenter.yml b/.github/workflows/commenter.yml index f8dbf8aaad..471a0b137b 100644 --- a/.github/workflows/commenter.yml +++ b/.github/workflows/commenter.yml @@ -17,7 +17,7 @@ jobs: permissions: pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment runs-on: ubuntu-latest - if: ${{github.event_name == 'pull_request_target' && github.event.workflow_run.conclusion=='success'}} + if: ${{github.event_name == 'pull_request_target'}} steps: - name: Comment PR - How to test uses: marocchino/sticky-pull-request-comment@v2 @@ -39,7 +39,7 @@ jobs: pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment actions: read # get artifact runs-on: ubuntu-latest - if: ${{github.event_name == 'workflow_run' }} + if: ${{github.event_name == 'workflow_run' && github.event.workflow_run.conclusion=='success'}} env: comment_result: ".tmp-comment-flamegraph.md" steps: