-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d4d9f4
commit 69afd04
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
fetch-depth: 0 | ||
submodules: true | ||
- name: Checkout HEAD | ||
if: github.event_name == 'pull_request' | ||
if: github.event_name == 'pull_request_target' | ||
run: git checkout ${{ github.head_ref }} | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
@@ -41,12 +41,12 @@ jobs: | |
- name: Build storybook | ||
run: pnpm --filter frontend build-storybook | ||
- name: Publish to Chromatic | ||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' | ||
if: github.event_name != 'pull_request_target' && github.ref == 'refs/heads/master' | ||
run: pnpm --filter frontend chromatic --exit-once-uploaded -d storybook-static | ||
env: | ||
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
- name: Publish to Chromatic | ||
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/master' | ||
if: github.event_name != 'pull_request_target' && github.ref != 'refs/heads/master' | ||
id: chromatic_push | ||
run: | | ||
DIFF="${{ github.event.before }} HEAD" | ||
|
@@ -61,7 +61,7 @@ jobs: | |
env: | ||
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
- name: Publish to Chromatic | ||
if: github.event_name == 'pull_request' | ||
if: github.event_name == 'pull_request_target' | ||
id: chromatic_pull_request | ||
run: | | ||
DIFF="${{ github.base_ref }} HEAD" | ||
|
@@ -77,7 +77,7 @@ jobs: | |
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
- name: Notify that Chromatic will skip testing | ||
uses: actions/[email protected] | ||
if: github.event_name == 'pull_request' && steps.chromatic_pull_request.outputs.skip == 'true' | ||
if: github.event_name == 'pull_request_target' && steps.chromatic_pull_request.outputs.skip == 'true' | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
|