File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 22
22
23
23
- name : Get latest Corretto URL
24
24
id : get-latest-corretto-url
25
- run : echo "{URL}={$(curl -LIs -o /dev/null -w %{url_effective} https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz)" >> $GITHUB_OUTPUT
25
+ run : |
26
+ URL=$(curl -LIs -o /dev/null -w %{url_effective} https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz)
27
+ echo "{URL}={$URL}" >> $GITHUB_OUTPUT
26
28
27
29
- uses : actions/cache@v3
28
30
id : corretto-cache
33
35
34
36
- name : Download AWS Corretto
35
37
if : steps.corretto-cache.outputs.cache-hit != 'true'
36
- run : wget https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz
37
- # run: wget ${{ steps.get-latest-corretto-url.outputs.___URL }}
38
-
38
+ # run: wget https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz
39
+ run : wget ${{ steps.get-latest-corretto-url.outputs.___URL }}
40
+
39
41
- name : ☕ Set up JDK 17
40
42
uses : actions/setup-java@v3
41
43
with :
You can’t perform that action at this time.
0 commit comments