Skip to content

Commit 7142205

Browse files
fix(showcase): rebuild theme consumers on shared changes
1 parent f748c69 commit 7142205

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎.github/workflows/showcase_build.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ jobs:
143143
# single-line strings, but mixing styles (list vs. string)
144144
# in the same filters block is easy to misread during review.
145145
filters: |
146+
shared_theme:
147+
- 'showcase/integrations/_shared/ts/theme.ts'
146148
workflow_config:
147149
- '.github/workflows/showcase_build_check.yml'
148150
angular:
@@ -369,6 +371,10 @@ jobs:
369371
($dispatch == "" and (
370372
($workflow_changed or ($changes | index("workflow_config") != null)) or
371373
($changes | index($fk) != null) or
374+
(($changes | index("shared_theme") != null) and (
375+
(.context | startswith("showcase/integrations/")) or
376+
(.dispatch_name | IN("shell", "shell-dojo", "shell-dashboard", "shell-docs"))
377+
)) or
372378
(($changes | index("angular") != null) and (
373379
(.context | startswith("showcase/integrations/")) or
374380
.dispatch_name == "shell"

‎.github/workflows/showcase_build_check.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
id: filter
5454
with:
5555
filters: |
56+
shared_theme:
57+
- 'showcase/integrations/_shared/ts/theme.ts'
5658
workflow_config:
5759
- '.github/workflows/showcase_build.yml'
5860
- '.github/workflows/showcase_build_check.yml'
@@ -254,7 +256,11 @@ jobs:
254256
if .build_args_branch == "__GH_REF_NAME__" then .build_args_branch = $ref else . end |
255257
(.filter_key as $fk | select(
256258
($changes | index("workflow_config") != null) or
257-
($changes | index($fk) != null)
259+
($changes | index($fk) != null) or
260+
(($changes | index("shared_theme") != null) and (
261+
(.context | startswith("showcase/integrations/")) or
262+
(.dispatch_name | IN("shell", "shell-dojo", "shell-dashboard", "shell-docs"))
263+
))
258264
))]
259265
')
260266

0 commit comments

Comments
 (0)