Skip to content

Commit

Permalink
ci(Chromatic): disable ❌ check in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
zettca committed Aug 14, 2024
1 parent eae402e commit 9661213
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/tests-visual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
forceRebuild: true

# Add red mark to workflow if it failed
- name: Evaluate Fail
if: ${{ steps.publish.outcome == 'failure' || steps.publish.outputs.changeCount != '0' || steps.publish.outputs.errorCount != '0' }}
run: exit 1
# Mark workflow as failed if has changed or failed tests AND not a PR
- name: Fail if visual changes
if: ${{ !inputs.batch-id && steps.publish.outcome == 'failure' || steps.publish.outputs.changeCount != '0' || steps.publish.outputs.errorCount != '0' }}
run: |
echo "${{ inputs.batch-id }}"
exit 1

0 comments on commit 9661213

Please sign in to comment.