Skip to content

Commit 10b129e

Browse files
committed
check if command found
1 parent 79aa2c8 commit 10b129e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: action.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ runs:
2121
run: which java
2222
id: check_java
2323
shell: bash
24+
continue-on-error: true
2425

2526
- name: Install java
26-
if: ${{ !contains(steps.check_java.outputs, 'not found')}}
27+
if: steps.check_java.outcome == 'failure'
2728
uses: actions/setup-java@v3
2829
with:
2930
distribution: "zulu"
@@ -34,9 +35,10 @@ runs:
3435
run: which flutter
3536
id: check_flutter
3637
shell: bash
38+
continue-on-error: true
3739

3840
- name: Setup flutter
39-
if: ${{ !contains(steps.check_flutter.outputs, 'not found')}}
41+
if: steps.check_flutter.outcome == 'failure'
4042
uses: subosito/flutter-action@v2
4143
with:
4244
channel: "stable"

0 commit comments

Comments
 (0)