This repository was archived by the owner on Nov 10, 2025. It is now read-only.
Keep Github Actions Cache < 10GB #450
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Keep Github Actions Cache < 10GB | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Run every 2hrs during weekdays | |
| - cron: "0 0/2 * * 1-5" | |
| jobs: | |
| cache-cleaner: | |
| if: github.repository == 'facebook/react-native' | |
| runs-on: ubuntu-latest | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: ./.github/actions/setup-node | |
| - name: Trim the cache | |
| run: node scripts/clean-gha-cache.js |