From 34d22a8904eb5a26dcebc647f75f14ee785e8aec Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Sat, 3 May 2025 14:43:21 -0400 Subject: [PATCH 1/2] fix(chromatic): run if a user adds the label to a Dependabot PR Signed-off-by: Aviv Keller --- .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 3fc06df5dce6b..043e402bddd7b 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -31,12 +31,11 @@ jobs: chromatic: # We only need to run Storybook Builds and Storybook Visual Regression Tests within Pull Requests that actually # introduce changes to the Storybook. Hence, we skip running these on Crowdin PRs and Dependabot PRs - # sha reference has no stable git tag reference or URL. see https://github.com/chromaui/chromatic-cli/issues/797 if: | github.event_name != 'pull_request_target' || ( github.event.label.name == 'github_actions:pull-request' && - startsWith(github.event.pull_request.head.ref, 'dependabot/') == false && + github.actor == 'dependabot[bot]' && github.event.pull_request.head.ref != 'chore/crowdin' ) From 6bad1cb3e3022e8291736043f36d12c5a081482a Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Sat, 3 May 2025 14:45:55 -0400 Subject: [PATCH 2/2] fixup! Signed-off-by: Aviv Keller --- .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 043e402bddd7b..cd9ae12686231 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -35,7 +35,7 @@ jobs: github.event_name != 'pull_request_target' || ( github.event.label.name == 'github_actions:pull-request' && - github.actor == 'dependabot[bot]' && + github.actor != 'dependabot[bot]' && github.event.pull_request.head.ref != 'chore/crowdin' )