ci: fix typo

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-05-10 10:33:49 +00:00 committed by GitHub
parent 6d4d9f417b
commit 69afd0480e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
submodules: true submodules: true
- name: Checkout HEAD - name: Checkout HEAD
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request_target'
run: git checkout ${{ github.head_ref }} run: git checkout ${{ github.head_ref }}
- name: Install pnpm - name: Install pnpm
uses: pnpm/action-setup@v2 uses: pnpm/action-setup@v2
@ -41,12 +41,12 @@ jobs:
- name: Build storybook - name: Build storybook
run: pnpm --filter frontend build-storybook run: pnpm --filter frontend build-storybook
- name: Publish to Chromatic - 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 run: pnpm --filter frontend chromatic --exit-once-uploaded -d storybook-static
env: env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Publish to Chromatic - 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 id: chromatic_push
run: | run: |
DIFF="${{ github.event.before }} HEAD" DIFF="${{ github.event.before }} HEAD"
@ -61,7 +61,7 @@ jobs:
env: env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Publish to Chromatic - name: Publish to Chromatic
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request_target'
id: chromatic_pull_request id: chromatic_pull_request
run: | run: |
DIFF="${{ github.base_ref }} HEAD" DIFF="${{ github.base_ref }} HEAD"
@ -77,7 +77,7 @@ jobs:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Notify that Chromatic will skip testing - name: Notify that Chromatic will skip testing
uses: actions/github-script@v6.4.0 uses: actions/github-script@v6.4.0
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: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |