File tree Expand file tree Collapse file tree 2 files changed +25
-44
lines changed Expand file tree Collapse file tree 2 files changed +25
-44
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : ' Chromatic '
1+ name : ' GO UI CD '
22
3- on : workflow_call
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - develop
48
59concurrency :
610 group : ${{ github.workflow }}-${{ github.ref }}-chromatic
@@ -13,10 +17,29 @@ permissions:
1317 id-token : write
1418
1519jobs :
20+ changed-files :
21+ runs-on : ubuntu-latest
22+ name : Check for changed files
23+ outputs :
24+ all_changed_files : ${{ steps.changed-files.outputs.all_changed_files }}
25+ any_changed : ${{ steps.changed-files.outputs.any_changed }}
26+ steps :
27+ - uses : actions/checkout@v4
28+ with :
29+ fetch-depth : 0
30+ - name : Get changed files
31+ id : changed-files
32+ uses : tj-actions/changed-files@v44
33+ with :
34+ files : |
35+ packages/ui/**
36+ packages/go-ui-storybook/**
1637 ui :
1738 name : Build UI Library
1839 environment : ' test'
1940 runs-on : ubuntu-latest
41+ needs : [changed-files]
42+ if : ${{ needs.changed-files.outputs.any_changed == 'true' }}
2043 defaults :
2144 run :
2245 working-directory : packages/ui
You can’t perform that action at this time.
0 commit comments