Skip to content

Commit 68bb6fc

Browse files
committed
Merge chromatic workflows
1 parent 7272982 commit 68bb6fc

File tree

2 files changed

+25
-44
lines changed

2 files changed

+25
-44
lines changed

.github/workflows/changed-files-chromatic.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/chromatic.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
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

59
concurrency:
610
group: ${{ github.workflow }}-${{ github.ref }}-chromatic
@@ -13,10 +17,29 @@ permissions:
1317
id-token: write
1418

1519
jobs:
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

0 commit comments

Comments
 (0)