From 4a756a4cca270a85ef3822db2040bcce067ff3a8 Mon Sep 17 00:00:00 2001 From: Vaclav Pavlin Date: Fri, 11 Aug 2023 16:36:41 +0200 Subject: [PATCH] fix(ci): only add comment on PR and do not duplicate it (#1908) --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 865570685..db9484571 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -162,6 +162,7 @@ jobs: - name: Comment PR uses: thollander/actions-comment-pull-request@v2 + if: ${{ github.event_name == 'pull_request' }} with: message: | You can find the image built from this PR at @@ -169,3 +170,4 @@ jobs: ``` ${{steps.build.outputs.image}} ``` + comment_tag: execution