7272 description : Unique id per workflow run. Must be set to unique value if dispatched multiple times for a single workflow.
7373 default : " "
7474 chromatic_enable :
75- description : ' Enable Chromatic Tests '
75+ description : ' Enable Chromatic tests '
7676 required : false
7777 type : boolean
7878 default : false
@@ -137,11 +137,8 @@ jobs:
137137 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
138138 run_webpack : ${{ inputs.node_run_webpack }}
139139 enable_cache : ${{ inputs.runs_on != 'self-hosted' }}
140- - name : Run Chromatic
141- if : ${{ inputs.chromatic_enable }}
142- 143- with :
144- projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
140+ chromatic_enable : ${{ inputs.chromatic_enable }}
141+ chromatic_project_token : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
145142
146143 build-python :
147144 name : Python
@@ -219,6 +216,7 @@ jobs:
219216 with :
220217 ref : ${{ inputs.branch }}
221218 token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
219+ fetch-depth : ${{ inputs.chromatic_enable && '0' || '1' }}
222220 - name : Checkout github-workflows
223221 uses : actions/checkout@v4
224222 with :
@@ -233,6 +231,8 @@ jobs:
233231 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
234232 run_webpack : false # Disable the build here and call afterwards, as otherwise the yarn run env:decrypt will fail due to a missing yarn install
235233 enable_cache : ${{ inputs.cypress_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }}
234+ chromatic_enable : ${{ inputs.chromatic_enable }}
235+ chromatic_project_token : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
236236 - name : Build python
237237 uses : ./tmp/github-workflows/.github/actions/build-python
238238 with :
@@ -338,6 +338,7 @@ jobs:
338338 with :
339339 ref : ${{ inputs.branch }}
340340 token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
341+ fetch-depth : ${{ inputs.chromatic_enable && '0' || '1' }}
341342 - name : Checkout github-workflows
342343 uses : actions/checkout@v4
343344 with :
@@ -352,6 +353,8 @@ jobs:
352353 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
353354 run_webpack : false # Disable the build here and call afterwards, as otherwise the yarn run env:decrypt will fail due to a missing yarn install
354355 enable_cache : ${{ inputs.playwright_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }}
356+ chromatic_enable : ${{ inputs.chromatic_enable }}
357+ chromatic_project_token : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
355358 - name : Build python
356359 uses : ./tmp/github-workflows/.github/actions/build-python
357360 with :
0 commit comments