mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45508 The scripts/clean-gha-cache.js uses the `gh` cli too, which expects the GITHUB_TOKEN presented GH_TOKEN. Also allowed us to manually kick off this workflow. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D59901639 fbshipit-source-id: f3543cc83cbf67b6969abc3390790e038e06c305
20 lines
434 B
YAML
20 lines
434 B
YAML
name: Keep Github Actions Cache < 10GB
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# Run every 2hrs during weekdays
|
|
- cron: "0 0/2 * * 1-5"
|
|
|
|
jobs:
|
|
cache-cleaner:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js 18
|
|
uses: actions/setup-node@v4.0.0
|
|
- name: Trim the cache
|
|
run: node scripts/clean-gha-cache.js
|