From dc696f86fadb379d3073623cab8bd4fd4c410c75 Mon Sep 17 00:00:00 2001 From: RasmusKjeldgaard Date: Thu, 30 May 2024 16:02:41 +0200 Subject: [PATCH] Run chromatic on merge to develop --- .github/workflows/chromatic.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 5f40ee017f..072684743e 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -3,10 +3,13 @@ name: "Visual Regression Tests - Chromatic" on: pull_request: types: [labeled, synchronize] + push: + branches: + - develop jobs: chromatic: - if: ${{ github.event.label.name == 'chromatic' || contains(github.event.pull_request.labels.*.name, 'chromatic') }} + if: ${{ github.event.label.name == 'chromatic' || contains(github.event.pull_request.labels.*.name, 'chromatic') || github.event_name == 'push'}} runs-on: ubuntu-latest steps: - name: Checkout code @@ -21,3 +24,4 @@ jobs: uses: chromaui/action@latest with: projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + autoAcceptChanges: "develop" # https://www.chromatic.com/docs/github-actions/#github-squashrebase-merge-and-the-main-branch