Skip to content

Commit

Permalink
Merge pull request #124
Browse files Browse the repository at this point in the history
* Update ci.yml
  • Loading branch information
RealDyllon authored Jul 12, 2023
1 parent 2ac8ca9 commit 08bd5b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: ["main"]
branches: ["main", "production"]
pull_request:
types: [opened, synchronize]
workflow_dispatch:
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 08bd5b4

Please sign in to comment.