File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,20 +9,26 @@ inputs:
99 description : ' Percy token (pass secrets.PERCY_TOKEN)'
1010 required : false
1111 default : ' '
12+ working-directory :
13+ description : ' Working directory for the command'
14+ required : false
15+ default : ' .'
1216
1317runs :
1418 using : ' composite'
1519 steps :
1620 - name : Run with Percy
1721 if : inputs.percy-token != ''
1822 shell : bash
23+ working-directory : ${{ inputs.working-directory }}
1924 env :
2025 PERCY_TOKEN : ${{ inputs.percy-token }}
2126 run : npx percy exec -- ${{ inputs.command }}
2227
2328 - name : Run without Percy (fork PR)
2429 if : inputs.percy-token == ''
2530 shell : bash
31+ working-directory : ${{ inputs.working-directory }}
2632 run : |
2733 echo "::notice::Skipping Percy (no token available - likely a fork PR)"
2834 ${{ inputs.command }}
Original file line number Diff line number Diff line change @@ -724,8 +724,9 @@ jobs:
724724 if : matrix.python-version == '3.12'
725725 uses : ./.github/actions/percy-exec
726726 with :
727- command : cd components/dash-html-components && pytest --headless --nopercyfinalize --junitxml=test-reports/junit_html.xml
727+ command : pytest --headless --nopercyfinalize --junitxml=test-reports/junit_html.xml
728728 percy-token : ${{ secrets.PERCY_TOKEN }}
729+ working-directory : components/dash-html-components
729730
730731 - name : Upload test results
731732 if : always()
You can’t perform that action at this time.
0 commit comments