File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 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 }}"
55
66on :
77 workflow_dispatch :
8+ inputs :
9+ checkout-ref :
10+ description : " The repository reference to checkout"
11+ required : false
12+ type : string
813 workflow_call :
914 inputs :
1015 gradle-task :
4045
4146 - name : Checkout the repo
4247 uses : actions/checkout@v3
48+ with :
49+ ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
4350
4451 - name : Validate Gradle Wrapper
4552 uses : gradle/wrapper-validation-action@v1
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ name: Publish Maven
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 :
712
813
3035 runs-on : macos-latest # only macOS supports building all Kotlin targets
3136 gradle-task : >-
3237 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