File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,8 @@ jobs:
202202 uses : ./.github/workflows/vrt.yml
203203 with :
204204 skip : ${{ contains(github.event.pull_request.labels.*.name, 'skip_vrt') }}
205+ ref : ${{ github.event.pull_request.head.ref || github.ref_name }}
206+ sha : ${{ github.event.pull_request.head.sha || github.ref }}
205207 secrets : inherit
206208
207209 # -------------------------------------------------------------
Original file line number Diff line number Diff line change 5353 uses : ./.github/workflows/vrt.yml
5454 with :
5555 skip : ${{ github.base_ref != 'main' }}
56+ ref : ${{ github.ref_name }}
57+ sha : ${{ github.ref }}
5658 secrets : inherit
5759
5860 # -------------------------------------------------------------
Original file line number Diff line number Diff line change 1515 required : false
1616 type : boolean
1717 default : false
18+ ref :
19+ description : " Branch to test"
20+ required : false
21+ type : string
22+ default : ${{ github.ref }}
23+ sha :
24+ description : " SHA to test"
25+ required : false
26+ type : string
27+ default : ${{ github.ref }}
1828 outputs :
1929 storybook-url :
2030 description : " URL of the published Storybook"
3747 uses : actions/checkout@v4
3848 with :
3949 fetch-depth : 0
50+ ref : ${{ inputs.ref || github.ref }}
51+ env :
52+ CHROMATIC_BRANCH : ${{ inputs.ref || github.ref_name }}
53+ CHROMATIC_SHA : ${{ inputs.sha || github.ref }}
54+ CHROMATIC_SLUG : ${{ github.repository }}
4055
4156 - name : Use Node LTS version
4257 uses : actions/setup-node@v4
7994 onlyChanged : true
8095 traceChanged : true
8196 untraced : " .github/* plugins/stylelint-*/* tools/* .changeset/*"
82- diagnostics : true
8397 autoAcceptChanges : " main"
8498 # Lets VRT pass without running so as not to waste snapshots
8599 skip : ${{ inputs.skip }}
You can’t perform that action at this time.
0 commit comments