Skip to content

Commit 2cb2c6f

Browse files
author
Ruslan Farkhutdinov
committed
Storybook Deployment: Handle closed re-deploy case & add wait-for-pages-deployment flag for remove
1 parent 5908f7a commit 2cb2c6f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/pr-storybook-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
github.event.pull_request.head.repo.full_name == github.repository &&
3333
(
3434
(github.event.action == 'labeled' && github.event.label.name == 'storybook') ||
35-
(github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'storybook'))
35+
(github.event.action != 'labeled' && github.event.action != 'closed' && contains(github.event.pull_request.labels.*.name, 'storybook'))
3636
)
3737
environment:
3838
name: storybook
@@ -113,3 +113,4 @@ jobs:
113113
umbrella-dir: preview
114114
comment: false
115115
token: ${{ github.token }}
116+
wait-for-pages-deployment: true

0 commit comments

Comments
 (0)