Skip to content

Commit

Permalink
install arduino cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ktauchathuranga committed Dec 8, 2024
1 parent 9d7e3f5 commit c8c439a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ PR_TITLE=$(jq --raw-output .pull_request.title $GITHUB_EVENT_PATH)
PR_VERSION=$(grep '^version=' library.properties | cut -d'=' -f2)
MAIN_VERSION=$(git fetch origin main && git checkout origin/main -- library.properties && grep '^version=' library.properties | cut -d'=' -f2)

# Install arduino-cli (if not already installed)
if ! command -v arduino-cli &> /dev/null
then
echo "arduino-cli not found, installing..."
sudo apt-get update
sudo apt-get install -y arduino-cli
else
echo "arduino-cli already installed"
fi

# Export variables for Python script
export GITHUB_TOKEN=$GITHUB_TOKEN
export PR_NUMBER
Expand Down

0 comments on commit c8c439a

Please sign in to comment.