OPS: Remove all cache when building from master.

This commit is contained in:
Marcos Rodriguez Velez 2025-02-24 21:36:20 -04:00
parent d38968086e
commit 06fbb8c945

View file

@ -29,6 +29,20 @@ jobs:
with:
fetch-depth: 0 # Ensures the full Git history is available
- name: Clear All Caches
if: github.ref == 'refs/heads/master'
run: |
echo "Clearing Xcode DerivedData..."
rm -rf ~/Library/Developer/Xcode/DerivedData
echo "Clearing CocoaPods Cache..."
rm -rf ~/Library/Caches/CocoaPods
echo "Clearing npm Cache..."
npm cache clean --force
echo "Clearing Ruby Gems Cache..."
rm -rf ~/.gem
echo "Clearing Bundler Cache..."
rm -rf ~/.bundle/cache
- name: Ensure Correct Branch
if: github.ref != 'refs/heads/master'
run: |