gitscope
← marzneshin / v0.5.6 / .github/workflows/chromatic-deploy.yml
https://dev.kronoz.win/r/marzneshin.git
.github/workflows/chromatic-deploy.yml · YAML
Blame Raw
 1name: Chromatic Deploy
 2
 3on:
 4  push:
 5    branches:
 6      - master
 7  pull_request:
 8
 9concurrency:
10  group: ${{ github.workflow }}-${{ github.ref }}
11  cancel-in-progress: true
12
13permissions:
14  actions: write
15  contents: read
16  pull-requests: write
17
18jobs:
19  changed-files:
20    runs-on: ubuntu-latest
21    name: Check UI Changes
22    outputs:
23      all_changed_files: ${{ steps.changed-files.outputs.all_changed_files }}
24      any_changed: ${{ steps.changed-files.outputs.any_changed }}
25    steps:
26      - uses: actions/checkout@v4
27        with:
28          fetch-depth: 0
29      - name: Get changed files
30        id: changed-files
31        uses: tj-actions/changed-files@v44
32        with:
33          files: |
34            dashboard/**            
35  chromatic:
36    name: Visual tests
37    needs: [ changed-files ]
38    if: ${{ needs.changed-files.outputs.any_changed == 'true' }}
39    uses: ./.github/workflows/chromatic.yml
40    secrets: inherit