Skip to content

Commit

Permalink
ci(comment): fix wrong condition (hexojs#5471)
Browse files Browse the repository at this point in the history
fix the error which is introduced by hexojs#5454
  • Loading branch information
uiolee authored Apr 19, 2024
1 parent 90b107c commit 093dc2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/commenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 093dc2d

Please sign in to comment.