Skip to content

Commit

Permalink
Fix Chromatic not running on main (#3838)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding authored Jul 17, 2024
1 parent 792a3bd commit 2574c4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- name: Publish to Chromatic
if: ${{ steps.chromatic_branch.outputs.draft != 'true' && steps.chromatic_branch.outputs.runChromatic == 'true' }}
if: ${{ steps.chromatic_branch.outputs.branchName == 'main' || (steps.chromatic_branch.outputs.draft != 'true' && steps.chromatic_branch.outputs.runChromatic == 'true') }}
uses: chromaui/[email protected]
# Chromatic GitHub Action options
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:

- name: Update deploy status (success)
uses: actions/github-script@v7
if: success() && github.event.workflow_run.event == 'pull_request'
if: success()
with:
script: |
await github.rest.repos.createCommitStatus({
Expand All @@ -80,7 +80,7 @@ jobs:
- name: Update deploy status (failure)
uses: actions/github-script@v7
if: failure() && github.event.workflow_run.event == 'pull_request'
if: failure()
with:
script: |
await github.rest.repos.createCommitStatus({
Expand Down

0 comments on commit 2574c4d

Please sign in to comment.