File tree 5 files changed +8
-5
lines changed
5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 58
58
- name : Checkout the repo
59
59
uses : actions/checkout@v3
60
60
with :
61
- ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
61
+ ref : ${{ inputs.checkout-ref || github.ref }}
62
62
63
63
- name : Validate Gradle Wrapper
64
64
uses : gradle/wrapper-validation-action@v1
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ permissions:
30
30
jobs :
31
31
32
32
sonatype-release :
33
+ if : github.ref == 'refs/heads/main'
33
34
permissions :
34
35
contents : read
35
36
packages : write
40
41
runs-on : macos-latest # only macOS supports building all Kotlin targets
41
42
gradle-task : >-
42
43
publishAllPublicationsToSonatypeReleaseRepository --stacktrace --no-configuration-cache --no-parallel
43
- checkout-ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
44
+ checkout-ref : ${{ inputs.checkout-ref }}
Original file line number Diff line number Diff line change 29
29
- name : Checkout the repo
30
30
uses : actions/checkout@v3
31
31
with :
32
- ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
32
+ ref : ${{ inputs.checkout-ref || github.ref }}
33
33
34
34
- name : Validate Gradle Wrapper
35
35
uses : gradle/wrapper-validation-action@v1
Original file line number Diff line number Diff line change 1
1
name : Tests
2
2
3
+
3
4
on :
4
5
workflow_dispatch :
5
6
workflow_call :
6
7
8
+
7
9
concurrency :
8
10
group : " Tests: ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
9
11
cancel-in-progress : true
Original file line number Diff line number Diff line change 37
37
contents : write
38
38
packages : write
39
39
with :
40
- checkout-ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
40
+ checkout-ref : ${{ inputs.checkout-ref }}
41
41
42
42
publish-site :
43
43
needs : tests
51
51
packages : write
52
52
pages : write # to deploy to Pages
53
53
with :
54
- checkout-ref : ${{ inputs.checkout-ref || github.event.repository.default_branch }}
54
+ checkout-ref : ${{ inputs.checkout-ref }}
You can’t perform that action at this time.
0 commit comments