Skip to content

Commit

Permalink
update validation step
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubramanianaks committed Jun 7, 2023
1 parent 79f0ad2 commit d7eedb1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/integration-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,19 @@ jobs:
- name: Validate Command is Installed
shell: bash
run: |
if ! command -v draft &> /dev/null
if command -v /home/runner/.local/bin/draft &> /dev/null
then
echo "draft could not be found"
exit 1
echo "install_dir=/home/runner/.local/bin/draft" >> $GITHUB_ENV
elif command -v /usr/local/bin/draft &> /dev/null
then
echo "install_dir=/usr/local/bin/draft" >> $GITHUB_ENV
elif command -v /c/Users/runneradmin/.local/bin/draft &> /dev/null
then
echo "install_dir=/c/Users/runneradmin/.local/bin/draft" >> $GITHUB_ENV
else
echo "B2k CLI is not found"
exit 1
fi
- name: Validate Draft Command Runs
shell: bash
run: draft -h
run: ${{ env.install_dir }} -h

0 comments on commit d7eedb1

Please sign in to comment.