From dad2e8f7587cff8a8c6fa737b3b3c1f28c329ecb Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 20 Jul 2023 17:31:21 +0300 Subject: [PATCH] chore: prevent running chromatic on all merged PRs As per discussion with @BrunoQuaresma, We want to reduce our chromatic costs and only want to run chromatic job on some merged PRs. This change will only run for PRs that target *.ts files. --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1649e4f5cd920..eabf1665597a6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -543,7 +543,7 @@ jobs: # REMARK: this is only used to build storybook and deploy it to Chromatic. runs-on: ubuntu-latest needs: changes - if: needs.changes.outputs.ts == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main' + if: needs.changes.outputs.ts == 'true' || needs.changes.outputs.ci == 'true' steps: - name: Checkout uses: actions/checkout@v3