File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ run-name: "Gradle Task ${{ inputs.gradle-task }} @ ${{ inputs.runs-on }}"
5
5
6
6
on :
7
7
workflow_dispatch :
8
+ inputs :
9
+ checkout-ref :
10
+ description : " The repository reference to checkout"
11
+ required : false
12
+ type : string
8
13
workflow_call :
9
14
inputs :
10
15
gradle-task :
40
45
41
46
- name : Checkout the repo
42
47
uses : actions/checkout@v3
48
+ with :
49
+ ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
43
50
44
51
- name : Validate Gradle Wrapper
45
52
uses : gradle/wrapper-validation-action@v1
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ name: Publish Maven
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 :
7
12
8
13
30
35
runs-on : macos-latest # only macOS supports building all Kotlin targets
31
36
gradle-task : >-
32
37
publishAllPublicationsToSonatypeReleaseRepository --stacktrace --no-configuration-cache --no-parallel
38
+ checkout-ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
You can’t perform that action at this time.
0 commit comments