File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,21 @@ jobs:
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
29
31
name : Restore Corretto
30
32
with :
31
33
path : ./amazon-corretto-17-x64-linux-jdk.tar.gz
32
- key : ${{ runner.os }}-corretto-${{ needs. steps.get-latest-corretto-url.outputs.___URL }}
34
+ key : ${{ runner.os }}-corretto-${{ steps.get-latest-corretto-url.outputs.___URL }}
33
35
34
36
- name : Download AWS Corretto
35
37
if : steps.corretto-cache.outputs.cache-hit != 'true'
36
38
# run: wget https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz
37
- run : wget ${{ needs. steps.get-latest-corretto-url.outputs.___URL }}
39
+ run : wget ${{ steps.get-latest-corretto-url.outputs.___URL }}
38
40
39
41
- name : ☕ Set up JDK 17
40
42
uses : actions/setup-java@v3
You can’t perform that action at this time.
0 commit comments