File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 31
31
name : Check
32
32
needs : [install]
33
33
uses : ./.github/workflows/checks.yml
34
+ with :
35
+ ref : ${{ github.sha }}
34
36
35
37
# The security job can't run on pull requests opened from forks because
36
38
# Github doesn't pass down the SNYK_TOKEN environment variable.
Original file line number Diff line number Diff line change 1
1
name : v4.x checks
2
2
3
- on : [workflow_call]
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ ref :
7
+ description : ' The commit the workflow should check out'
8
+ required : true
9
+ default : ${{ github.sha }}
10
+ type : string
4
11
5
12
jobs :
6
13
test-node :
14
21
steps :
15
22
- uses : actions/checkout@v3
16
23
with :
17
- ref : ${{ github.sha }}
24
+ ref : ${{ inputs.ref }}
18
25
- uses : actions/cache@v3
19
26
with :
20
27
path : ~/.npm # this is cache where npm installs from before going out to the network
31
38
runs-on : ubuntu-latest
32
39
steps :
33
40
- uses : actions/checkout@v3
41
+ with :
42
+ ref : ${{ inputs.ref }}
34
43
- uses : actions/cache@v3
35
44
with :
36
45
path : ~/.npm # this is cache where npm installs from before going out to the network
47
56
runs-on : ubuntu-latest
48
57
steps :
49
58
- uses : actions/checkout@v3
59
+ with :
60
+ ref : ${{ inputs.ref }}
50
61
- uses : actions/cache@v3
51
62
with :
52
63
path : ~/.npm # this is cache where npm installs from before going out to the network
59
70
runs-on : ubuntu-latest
60
71
steps :
61
72
- uses : actions/checkout@v3
73
+ with :
74
+ ref : ${{ inputs.ref }}
62
75
- uses : actions/cache@v3
63
76
with :
64
77
path : ~/.npm # this is cache where npm installs from before going out to the network
Original file line number Diff line number Diff line change 45
45
name : Checks
46
46
needs : [install]
47
47
uses : ./.github/workflows/checks.yml
48
+ with :
49
+ ref : ${{ github.event.pull_request.head.sha }}
You can’t perform that action at this time.
0 commit comments