From d4258a227a4df060cc0f9f58b36deaf8b3befa75 Mon Sep 17 00:00:00 2001 From: Matt Vickers Date: Tue, 26 Sep 2023 09:29:07 -0500 Subject: [PATCH] Don't run chromatic task on main --- .github/workflows/chromatic.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index d995d854c..ec12cd0d3 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -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 🛎️ @@ -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: