From 58f0bd23195e0d94afabdf9fd1ce35aed1a51528 Mon Sep 17 00:00:00 2001 From: sirineJ <112706079+sirineJ@users.noreply.github.com> Date: Tue, 17 Dec 2024 18:41:51 +0100 Subject: [PATCH] disable chromatic if PR has "disabe-chromatic" label --- .github/workflows/chromatic.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index a0fa8dda84..be1b6e2d3f 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -8,7 +8,7 @@ concurrency: jobs: chromatic: - if: ${{ !startsWith(github.ref, 'refs/heads/dependabot/') || !startsWith(github.triggering_actor, 'dependabot') }} + if: ${{ (!startsWith(github.ref, 'refs/heads/dependabot/') || !startsWith(github.triggering_actor, 'dependabot')) && !contains(github.event.pull_request.labels.*.name, 'disabe-chromatic ')}} runs-on: ubuntu-latest steps: - name: Checkout repository