File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 12
12
- ' **/README.md'
13
13
- ' .run/**'
14
14
15
+ env :
16
+ JDK_URL : https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz
17
+ JDK_FILE : ./amazon-corretto-17-x64-linux-jdk.tar.gz
18
+
15
19
jobs :
16
20
build :
17
21
name : 🎉 Build
@@ -23,33 +27,26 @@ jobs:
23
27
24
28
- name : Get latest Corretto URL
25
29
id : get-latest-corretto-url
26
- run : >-
27
- echo "::set-output name=URL::$(curl -LIs -o /dev/null -w
28
- %{url_effective}
29
- https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz)"
30
+ run : echo "{URL}={$(curl -LIs -o /dev/null -w %{url_effective} $JDK_URL)}" >> $GITHUB_OUTPUT
30
31
31
32
- uses : actions/cache@v3
32
33
id : corretto-cache
33
34
name : Restore Corretto
34
35
with :
35
- path : ./amazon-corretto-17-x64-linux-jdk.tar.gz
36
- key : >-
37
- ${{ runner.os }}-corretto-${{
38
- steps.get-latest-corretto-url.outputs.___URL }}
36
+ path : $JDK_FILE
37
+ key : ${{ runner.os }}-corretto-${{ steps.get-latest-corretto-url.outputs.___URL }}
39
38
40
39
- name : Download AWS Corretto
41
40
if : steps.corretto-cache.outputs.cache-hit != 'true'
42
- run : >-
43
- wget
44
- https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz
41
+ run : wget steps.get-latest-corretto-url.outputs.___URL
45
42
46
43
- name : ☕ Set up JDK 17
47
44
uses : actions/setup-java@v3
48
45
with :
49
46
distribution : jdkfile
50
47
java-version : ' 17'
51
48
architecture : x64
52
- jdkFile : ./amazon-corretto-17-x64-linux-jdk.tar.gz
49
+ jdkFile : $JDK_FILE
53
50
54
51
- name : 🔢 Grant execute permission for gradlew
55
52
run : chmod +x gradlew
You can’t perform that action at this time.
0 commit comments