File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,27 @@ inputs:
17
17
runs :
18
18
using : " composite"
19
19
steps :
20
- - uses : actions/setup-java@v3
20
+ - name : Check java found
21
+ run : which java
22
+ id : check_java
23
+ shell : bash
24
+
25
+ - name : Install java
26
+ if : ${{ !contains(steps.check_java.outputs, 'not found')}}
27
+ uses : actions/setup-java@v3
21
28
with :
22
29
distribution : " zulu"
23
30
java-version : " 17.x"
24
31
cache : " gradle"
25
32
26
- - uses : subosito/flutter-action@v2
33
+ - name : Check flutter found
34
+ run : which flutter
35
+ id : check_flutter
36
+ shell : bash
37
+
38
+ - name : Setup flutter
39
+ if : ${{ !contains(steps.check_flutter.outputs, 'not found')}}
40
+ uses : subosito/flutter-action@v2
27
41
with :
28
42
channel : " stable"
29
43
cache : true
44
58
RELEASE_KEY_PASSWORD : ${{ inputs.release-key-password }}
45
59
working-directory : ${{ inputs.working-directory }}/android
46
60
47
- - name : build
61
+ - name : Build
48
62
run : ${{ inputs.build-cmd }}
49
63
shell : bash
50
64
working-directory : ${{ inputs.working-directory }}
You can’t perform that action at this time.
0 commit comments