Not adding comment on push (only pull_request)
authorDavid Négrier <d.negrier@thecodingmachine.com>
Wed, 13 May 2020 13:58:17 +0000 (15:58 +0200)
committerDavid Négrier <d.negrier@thecodingmachine.com>
Wed, 13 May 2020 13:58:17 +0000 (15:58 +0200)
.github/workflows/build-and-deploy.yml

index 88bd454383868c7f7fd39434a3883f27e7e2480f..619bee06f197237ecfd4297d20d9dd12aef5b070 100644 (file)
@@ -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: