Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Keep Github Actions Cache < 10GB #450

Keep Github Actions Cache < 10GB

Keep Github Actions Cache < 10GB #450

Workflow file for this run

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