From 933670239d655f5652221cc690a3f3b47b8dd23b Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Thu, 6 Jun 2024 11:26:06 +0200 Subject: [PATCH] ci: Run Storybook only on frontend changes --- .github/workflows/storybook.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 21432cb40..7c63c636e 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -4,15 +4,22 @@ name: 'Storybook' on: pull_request: - branches: ["**"] + branches: ['**'] + paths: + - 'frontend/**' + - '.github/workflows/storybook.yml' push: - branches: ["main"] + branches: ['main'] + paths: + - 'frontend/**' + - '.github/workflows/storybook.yml' jobs: chromatic: runs-on: ubuntu-latest if: github.actor != 'dependabot[bot]' concurrency: + # prettier-ignore group: chromatic-${{ github.event_name }}-${{ github.event.pull_request.number }} cancel-in-progress: true steps: