File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -18,27 +18,36 @@ runs:
18
18
using : " composite"
19
19
steps :
20
20
- name : Check java found
21
- run : java --version
22
21
id : check_java
23
22
shell : bash
24
- continue-on-error : true
23
+ run : |
24
+ if java --version; then
25
+ echo "installed=true" >> "$GITHUB_OUTPUT"
26
+ else
27
+ echo "installed=false" >> "$GITHUB_OUTPUT"
28
+ fi
25
29
26
30
- name : Install java
27
- if : steps.check_java.outcome == 'failure '
31
+ if : steps.check_java.outputs.installed == 'false '
28
32
uses : actions/setup-java@v3
29
33
with :
30
34
distribution : " zulu"
31
35
java-version : " 17.x"
32
36
cache : " gradle"
33
37
34
38
- name : Check flutter found
35
- run : flutter --version
36
39
id : check_flutter
37
40
shell : bash
38
41
continue-on-error : true
42
+ run : |
43
+ if flutter --version; then
44
+ echo "installed=true" >> "$GITHUB_OUTPUT"
45
+ else
46
+ echo "installed=false" >> "$GITHUB_OUTPUT"
47
+ fi
39
48
40
49
- name : Setup flutter
41
- if : steps.check_flutter.outcome == 'failure '
50
+ if : steps.check_flutter.outputs.installed == 'false '
42
51
uses : subosito/flutter-action@v2
43
52
with :
44
53
channel : " stable"
You can’t perform that action at this time.
0 commit comments