File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 13
13
schedule :
14
14
- cron : " 0 0 * * *"
15
15
16
+ env :
17
+ JAVA_DISTRIBUTION : ' adopt'
18
+
16
19
jobs :
17
20
build-and-test :
18
21
runs-on : ${{ matrix.os }}
@@ -24,11 +27,12 @@ jobs:
24
27
- uses : actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
25
28
with :
26
29
fetch-depth : 2
27
- - uses : actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
30
+ - uses : actions/setup-java@8764a52df183aa0ccea74521dfd9d506ffc7a19a # v2.0.0
28
31
with :
29
32
java-version : 11
30
33
java-package : jdk
31
34
architecture : x64
35
+ distribution : ${{ env.JAVA_DISTRIBUTION }}
32
36
33
37
- name : Get date for cache # see https://github.com/actions/cache README
34
38
id : get-date
@@ -72,11 +76,12 @@ jobs:
72
76
- uses : actions/setup-python@8c5ea631b2b2d5d8840cf4a2b183a8a0edc1e40d # v2.2.0
73
77
with :
74
78
python-version : 3.8
75
- - uses : actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
79
+ - uses : actions/setup-java@8764a52df183aa0ccea74521dfd9d506ffc7a19a # v2.0.0
76
80
with :
77
81
java-version : 11
78
82
java-package : jdk
79
83
architecture : x64
84
+ distribution : ${{ env.JAVA_DISTRIBUTION }}
80
85
81
86
- name : Get date for cache # see https://github.com/actions/cache README
82
87
id : get-date
@@ -103,11 +108,12 @@ jobs:
103
108
104
109
steps :
105
110
- uses : actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
106
- - uses : actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
111
+ - uses : actions/setup-java@8764a52df183aa0ccea74521dfd9d506ffc7a19a # v2.0.0
107
112
with :
108
113
java-version : 11
109
114
java-package : jdk
110
115
architecture : x64
116
+ distribution : ${{ env.JAVA_DISTRIBUTION }}
111
117
112
118
- name : Get date for cache # see https://github.com/actions/cache README
113
119
id : get-date
You can’t perform that action at this time.
0 commit comments