File tree 7 files changed +19
-14
lines changed
7 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 1
- # Common settings that generally should always be used with your language specific settings
1
+ # https://help.github.com/articles/dealing-with-line-endings/
2
+ # https://github.com/alexkaratarakis/gitattributes
2
3
3
- # Auto detect text files and perform LF normalization
4
- * text eol =lf
4
+ * text =auto
5
5
6
6
# The above will handle all files NOT found below
7
7
44
44
* .cmd text eol =crlf
45
45
* .ps1 text eol =crlf
46
46
47
-
48
- # JVM sources
49
- * .java text diff =java
50
- * .gradle text diff =java
51
- * .kt text diff =java
52
- * .kts text diff =java
47
+ # JVM
48
+ * .java text diff =java
49
+ * .gradle text diff =java
50
+ * .java text diff =java
51
+ * .kt text diff =kotlin
52
+ * .kts text diff =kotlin
53
+ * .properties text
54
+ * .jar binary
53
55
54
56
# Text files where line endings should be preserved
55
57
* .patch - text
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