Skip to content

Commit

Permalink
Fix Chromatic on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Oct 13, 2024
1 parent 809b940 commit 3f87a14
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: "Chromatic"

on:
push:
branches:
- next
- graphql
push:
branches:
- next
- graphql
pull_request:
branches:
- next
- graphql

jobs:
chromatic:
Expand All @@ -15,10 +19,18 @@ jobs:
node-version: [20.x]
steps:
- name: Checkout
if: github.event_name == 'push'
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Checkout (PR)
if: github.event_name == 'push'
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}

- name: Restore Yarn cache
uses: actions/cache@v4
with:
Expand Down

0 comments on commit 3f87a14

Please sign in to comment.