From 08bd5b4e921d6f5c0080608fe2d02269c238cb52 Mon Sep 17 00:00:00 2001 From: Dyllon Gunawardhana Date: Wed, 12 Jul 2023 19:06:17 +0800 Subject: [PATCH] Merge pull request #124 * Update ci.yml --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef647587..2f1a3b0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: ["main"] + branches: ["main", "production"] pull_request: types: [opened, synchronize] workflow_dispatch: @@ -155,7 +155,7 @@ jobs: deployment-id: ${{ steps.deployment.outputs.deployment_id }} - name: Comment PR with preview link if success - if: success() + if: success() && github.event_name == 'pull_request' uses: thollander/actions-comment-pull-request@v2 env: DEPLOYMENT_URL: ${{ steps.deploy-to-vercel.outputs.deployment-url }} @@ -166,7 +166,7 @@ jobs: mode: recreate - name: Comment PR with preview link if fail - if: failure() + if: failure() && github.event_name == 'pull_request' uses: thollander/actions-comment-pull-request@v2 env: DEPLOYMENT_URL: ${{ steps.deploy-to-vercel.outputs.deployment-url }}