From 9ae587dd2693328fd8654213cf5ecdeb9035117b Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Thu, 29 Feb 2024 18:05:39 +0100 Subject: [PATCH] ci: skip posting comment when ran outside pull_request [skip_ci] --- .github/actions/ui-comment/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/ui-comment/action.yml b/.github/actions/ui-comment/action.yml index cb8b5946f4..7ae49e7197 100644 --- a/.github/actions/ui-comment/action.yml +++ b/.github/actions/ui-comment/action.yml @@ -6,6 +6,7 @@ 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]' @@ -13,6 +14,7 @@ runs: - 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 }}