File tree Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 15
15
name : Run Chromatic
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - name : List all changed files
19
- env :
20
- ALL_CHANGED_FILES : ${{ steps.ui-changes.outputs.all_changed_files }}
21
- ANY_CHANGED : ${{ steps.ui-changes.outputs.any_changed }}
22
- run : |
23
- echo "Found changed ${#ALL_CHANGED_FILES[@]} files"
24
- for file in ${ALL_CHANGED_FILES}; do
25
- echo "$file"
26
- done
27
18
- name : Checkout code
28
19
uses : actions/checkout@v4
29
20
with :
Original file line number Diff line number Diff line change @@ -10,24 +10,34 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
name : ui-changes
12
12
outputs :
13
- all_changed_files : ${{ steps.ui-changes.outputs.all_changed_files }}
14
- any_changed : ${{ steps.ui-changes.outputs.any_changed }}
13
+ any_modified : ${{ steps.ui-changes.outputs.any_modified }}
14
+ all_modified_files : ${{ steps.ui-changes.outputs.all_modified_files }}
15
15
steps :
16
16
- uses : actions/checkout@v4
17
17
with :
18
18
fetch-depth : 0
19
19
- name : Get changed files
20
- id : changed-files
20
+ id : ui-changes
21
21
uses : tj-actions/changed-files@v44
22
22
with :
23
+ write_output_files : true
23
24
files : |
24
25
src/**
25
26
!src/demo/**
26
27
.storybook/**
28
+ - name : List all changed files
29
+ env :
30
+ ALL_MODIFIED_FILES : ${{ steps.ui-changes.outputs.all_modified_files }}
31
+ ANY_MODIFIED : ${{ steps.ui-changes.outputs.any_modified }}
32
+ run : |
33
+ echo "Found ${#ALL_MODIFIED_FILES[@]} changed UI file(s)"
34
+ for file in ${ALL_MODIFIED_FILES}; do
35
+ echo "$file"
36
+ done
27
37
28
38
chromatic :
29
39
name : Run Chromatic
30
40
needs : [ui-changes]
31
- if : ${{ needs.ui-changes.outputs.any_changed == 'true' }}
41
+ if : ${{ needs.ui-changes.outputs.any_modified == 'true' }}
32
42
uses : ./.github/workflows/chromatic.yml
33
43
secrets : inherit
Original file line number Diff line number Diff line change 8
8
box-sizing : border-box ;
9
9
10
10
> * {
11
+ border-radius : 10px ;
12
+
11
13
& :not (:first-child ) {
12
14
border-left : var (--border-color ) var (--border-width ) solid ;
13
15
}
Original file line number Diff line number Diff line change @@ -254,4 +254,5 @@ export default function Demo() {
254
254
</ div >
255
255
) ;
256
256
}
257
+
257
258
createRoot ( document . getElementById ( 'app' ) as HTMLDivElement ) . render ( < Demo /> ) ;
You can’t perform that action at this time.
0 commit comments