File tree 2 files changed +16
-0
lines changed 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,17 @@ name: Publish Site
3
3
4
4
on :
5
5
workflow_dispatch :
6
+ inputs :
7
+ checkout-ref :
8
+ description : " The repository reference to checkout"
9
+ required : false
10
+ type : string
6
11
workflow_call :
12
+ inputs :
13
+ checkout-ref :
14
+ description : " The repository reference to checkout"
15
+ required : false
16
+ type : string
7
17
8
18
9
19
concurrency :
18
28
steps :
19
29
- name : Checkout the repo
20
30
uses : actions/checkout@v3
31
+ with :
32
+ ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
21
33
22
34
- name : Validate Gradle Wrapper
23
35
uses : gradle/wrapper-validation-action@v1
Original file line number Diff line number Diff line change 36
36
checks : write
37
37
contents : write
38
38
packages : write
39
+ with :
40
+ checkout-ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
39
41
40
42
publish-site :
41
43
needs : tests
48
50
id-token : write # to verify the deployment originates from an appropriate source
49
51
packages : write
50
52
pages : write # to deploy to Pages
53
+ with :
54
+ checkout-ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
You can’t perform that action at this time.
0 commit comments