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:
202
202
uses : ./.github/workflows/vrt.yml
203
203
with :
204
204
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 }}
205
207
secrets : inherit
206
208
207
209
# -------------------------------------------------------------
Original file line number Diff line number Diff line change 53
53
uses : ./.github/workflows/vrt.yml
54
54
with :
55
55
skip : ${{ github.base_ref != 'main' }}
56
+ ref : ${{ github.ref_name }}
57
+ sha : ${{ github.ref }}
56
58
secrets : inherit
57
59
58
60
# -------------------------------------------------------------
Original file line number Diff line number Diff line change 15
15
required : false
16
16
type : boolean
17
17
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 }}
18
28
outputs :
19
29
storybook-url :
20
30
description : " URL of the published Storybook"
37
47
uses : actions/checkout@v4
38
48
with :
39
49
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 }}
40
55
41
56
- name : Use Node LTS version
42
57
uses : actions/setup-node@v4
79
94
onlyChanged : true
80
95
traceChanged : true
81
96
untraced : " .github/* plugins/stylelint-*/* tools/* .changeset/*"
82
- diagnostics : true
83
97
autoAcceptChanges : " main"
84
98
# Lets VRT pass without running so as not to waste snapshots
85
99
skip : ${{ inputs.skip }}
You can’t perform that action at this time.
0 commit comments