@@ -11,15 +11,17 @@ jobs:
11
11
release :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v2
15
- - name : Set up JDK 1.17
16
- uses : actions/setup-java@v1
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v4
16
+ - name : Set up JDK 11
17
+ uses : actions/setup-java@v4
17
18
with :
18
- java-version : 1.17
19
+ distribution : ' zulu'
20
+ java-version : ' 11'
19
21
settings-path : ${{ github.workspace }}
20
22
21
23
- name : Load local Maven repository cache
22
- uses : actions/cache@v2
24
+ uses : actions/cache@v4
23
25
with :
24
26
path : ~/.m2/repository
25
27
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -32,17 +34,17 @@ jobs:
32
34
git config --global user.name "JohnnyQ5"
33
35
34
36
- name : Set version in Maven project
35
- run : mvn versions:set -DnewVersion=${{ github.event.inputs.versionTag }}
37
+ run : mvn versions:set -DnewVersion=${{ github.event.inputs.versionTag }}
36
38
37
39
- name : Build with Maven
38
- run : mvn -B package --file pom.xml
40
+ run : mvn -B package --file pom.xml
39
41
40
42
- name : Create Release Notes
41
43
if : ${{ !startsWith(github.ref, 'refs/tags/')
42
44
&& !( contains(github.event.inputs.versionTag, 'alpha')
43
45
|| contains(github.event.inputs.versionTag, 'beta')
44
46
|| contains(github.event.inputs.versionTag, 'rc')) }}
45
- uses : actions/github-script@v4.0.2
47
+ uses : actions/github-script@v7
46
48
with :
47
49
github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN}}
48
50
script : |
56
58
&& ( contains(github.event.inputs.versionTag, 'alpha')
57
59
|| contains(github.event.inputs.versionTag, 'beta')
58
60
|| contains(github.event.inputs.versionTag, 'rc')) }}
59
- uses : actions/github-script@v4.0.2
61
+ uses : actions/github-script@v7
60
62
with :
61
63
github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN}}
62
64
script : |
85
87
run : git push
86
88
87
89
- name : Open PR with version bump
88
- uses : actions/github-script@v4.0.2
90
+ uses : actions/github-script@v7
89
91
with :
90
92
github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN}}
91
93
script : |
0 commit comments