Skip to content

Commit

Permalink
ci: skip posting comment when ran outside pull_request
Browse files Browse the repository at this point in the history
[skip_ci]
  • Loading branch information
mmilata committed Mar 12, 2024
1 parent e7f2d3f commit 78e2642
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/ui-comment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ runs:
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
if: github.event_name == 'pull_request'
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: ui-comment-${{ github.workflow }}

- name: Create or update comment
uses: peter-evans/create-or-update-comment@v3
if: github.event_name == 'pull_request'
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
Expand Down

0 comments on commit 78e2642

Please sign in to comment.