Skip to content

Commit

Permalink
ci: fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken committed May 8, 2023
1 parent 39f486e commit 1696927
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Publish to Chromatic
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/master'
id: chromatic
id: chromatic_push
run: |
DIFF="${{ github.event.before }} HEAD"
if [ "$DIFF" = "0000000000000000000000000000000000000000 HEAD" ]; then
Expand All @@ -62,7 +62,7 @@ jobs:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Publish to Chromatic
if: github.event_name == 'pull_request'
id: chromatic
id: chromatic_pull_request
run: |
DIFF="${{ github.base_ref }} HEAD"
if [ "$DIFF" = "0000000000000000000000000000000000000000 HEAD" ]; then
Expand All @@ -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' && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop' && steps.chromatic.outputs.skip == 'true'
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop' && (steps.chromatic_push.outputs.skip == 'true' || steps.chromatic_pull_request.outputs.skip == 'true')
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down

0 comments on commit 1696927

Please sign in to comment.