Update check-if-ui-has-changed.yml
parent
53befd7c5c
commit
590ec3bf23
|
@ -4,7 +4,14 @@
|
||||||
name: 'Chromatic'
|
name: 'Chromatic'
|
||||||
|
|
||||||
# Event for the workflow
|
# Event for the workflow
|
||||||
on: push
|
on:
|
||||||
|
pull_request_target: # So we can test on forks
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- apps/storybook/**
|
||||||
|
- packages/ui/**
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
# List of jobs
|
# List of jobs
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -38,7 +45,8 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # 👈 Required to retrieve git history
|
ref: ${{ github.event.pull_request.head.sha }} # So we can test on forks
|
||||||
|
fetch-depth: 2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
# 👇 Adds Chromatic as a step in the workflow
|
# 👇 Adds Chromatic as a step in the workflow
|
||||||
|
|
Loading…
Reference in New Issue