Skip to content

Commit

Permalink
Merge pull request #1775 from DSD-DBS/skip-storybook-on-draft
Browse files Browse the repository at this point in the history
ci: Skip Storybook build on draft PRs
  • Loading branch information
MoritzWeber0 authored Sep 10, 2024
2 parents 83cf867 + 07f8bfd commit f6d0b49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ name: 'Storybook'
on:
pull_request:
branches: ['**']
types: [opened, reopened, synchronize, ready_for_review]
paths:
- 'frontend/**'
- '.github/workflows/storybook.yml'
Expand All @@ -17,7 +18,10 @@ on:
jobs:
chromatic:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
# prettier-ignore
if:
github.actor != 'dependabot[bot]' &&
(github.event.pull_request.draft == false || github.event_name == 'push')
concurrency:
# prettier-ignore
group: chromatic-${{ github.event_name }}-${{ github.event.pull_request.number }}
Expand Down

0 comments on commit f6d0b49

Please sign in to comment.