Skip to content

Commit

Permalink
fix ci :clean-pio
Browse files Browse the repository at this point in the history
  • Loading branch information
Szybet committed Jun 26, 2024
1 parent 2bfc2fd commit 13a670a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,12 @@ jobs:
cd InkWatchy-demo
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
if [[ $COMMIT_MESSAGE == *":clean-pio" ]]; then
echo "Cleaning platformio directory, as requested"
rm -rf ~/.platformio/
else
echo "Not cleaning platformio directory"
fi
if [[ $COMMIT_MESSAGE == *":clean-pack" ]]; then
if [[ $COMMIT_MESSAGE == *":clean-pio" ]]; then
echo "Cleaning pio packages, as requested"
rm -rf ~/.platformio/packages/framework-arduinoespressif32/
rm -rf ~/.platformio/packages/framework-espidf/
rm -rf ~/.platformio/platforms/*
else
echo "Not cleaning platformio packages"
fi
Expand Down

0 comments on commit 13a670a

Please sign in to comment.