From 7b62a906b709dfc6e9a123f50c6df6df704066a0 Mon Sep 17 00:00:00 2001 From: Une Sofie Kinn Ekroll Date: Thu, 10 Oct 2024 15:28:52 +0200 Subject: [PATCH] ci: only run Chromatic on PRs ready for review --- .github/workflows/visual-tests.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/visual-tests.yml b/.github/workflows/visual-tests.yml index 55738796b8..d2942a8102 100644 --- a/.github/workflows/visual-tests.yml +++ b/.github/workflows/visual-tests.yml @@ -2,19 +2,21 @@ name: Visual tests on: workflow_dispatch: pull_request: + branches: [main, next] + types: + - ready_for_review paths: - .github/workflows/visual-tests.yml - 'packages/**' - 'apps/storybook/**' push: - branches: - - main - - next + branches: [main, next] jobs: checks: name: Build & run visual/interaction tests runs-on: ubuntu-latest + if: ${{ !github.event.pull_request.draft }} steps: - uses: actions/checkout@v4 with: