Skip to content

Commit 9862c42

Browse files
Merge pull request #9 from stackql/feat/check-binary-before-install
added the check step and if condition for setup stackql
2 parents a41d371 + d72534c commit 9862c42

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,20 @@ inputs:
2727
runs:
2828
using: "composite"
2929
steps:
30+
- name: Check StackQL is installed and set output
31+
id: check-stackql
32+
shell: bash
33+
run: |
34+
if command -v stackql &> /dev/null; then
35+
echo "stackql_installed=true" >> $GITHUB_OUTPUT
36+
else
37+
echo "stackql_installed=false" >> $GITHUB_OUTPUT
38+
fi
39+
40+
3041
- name: Setup StackQL
3142
uses: stackql/[email protected]
43+
if: ${{steps.check-stackql.outputs.stackql_installed == 'false'}}
3244
with:
3345
use_wrapper: true
3446

0 commit comments

Comments
 (0)