File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,17 @@ name: Publish Site
33
44on :
55 workflow_dispatch :
6+ inputs :
7+ checkout-ref :
8+ description : " The repository reference to checkout"
9+ required : false
10+ type : string
611 workflow_call :
12+ inputs :
13+ checkout-ref :
14+ description : " The repository reference to checkout"
15+ required : false
16+ type : string
717
818
919concurrency :
1828 steps :
1929 - name : Checkout the repo
2030 uses : actions/checkout@v3
31+ with :
32+ ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
2133
2234 - name : Validate Gradle Wrapper
2335 uses : gradle/wrapper-validation-action@v1
Original file line number Diff line number Diff line change 3636 checks : write
3737 contents : write
3838 packages : write
39+ with :
40+ checkout-ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
3941
4042 publish-site :
4143 needs : tests
4850 id-token : write # to verify the deployment originates from an appropriate source
4951 packages : write
5052 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