From cc621c09cb291982bf63af3b94bc277af93609c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20N=C3=A9grier?= Date: Wed, 13 May 2020 15:58:17 +0200 Subject: [PATCH] Not adding comment on push (only pull_request) --- .github/workflows/build-and-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 88bd454..619bee0 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -78,6 +78,7 @@ jobs: - name: Add a comment in PR uses: unsplash/comment-on-pr@v1.2.0 + if: ${{ github.event_name == 'pull_request' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: -- 2.25.1