Skip to content

Commit

Permalink
Don't run chromatic task on main
Browse files Browse the repository at this point in the history
  • Loading branch information
envex committed Sep 26, 2023
1 parent a2f879d commit d4258a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: push
jobs:
chromatic:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ github.actor != 'dependabot[bot]' && github.ref != 'refs/heads/main'}}
continue-on-error: true
steps:
- name: Checkout 🛎️
Expand All @@ -19,7 +19,6 @@ jobs:
- name: Install and Build 🔧
run: yarn
- name: Publish to Chromatic
if: github.ref != 'refs/heads/main'
uses: chromaui/action@v1
id: chromatic
with:
Expand Down

0 comments on commit d4258a2

Please sign in to comment.