Skip to content

Commit 093dc2d

Browse files
authored
ci(comment): fix wrong condition (#5471)
fix the error which is introduced by #5454
1 parent 90b107c commit 093dc2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/commenter.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
permissions:
1818
pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment
1919
runs-on: ubuntu-latest
20-
if: ${{github.event_name == 'pull_request_target' && github.event.workflow_run.conclusion=='success'}}
20+
if: ${{github.event_name == 'pull_request_target'}}
2121
steps:
2222
- name: Comment PR - How to test
2323
uses: marocchino/sticky-pull-request-comment@v2
@@ -39,7 +39,7 @@ jobs:
3939
pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment
4040
actions: read # get artifact
4141
runs-on: ubuntu-latest
42-
if: ${{github.event_name == 'workflow_run' }}
42+
if: ${{github.event_name == 'workflow_run' && github.event.workflow_run.conclusion=='success'}}
4343
env:
4444
comment_result: ".tmp-comment-flamegraph.md"
4545
steps:

0 commit comments

Comments
 (0)