Images Cleanup #8040
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: 'Images Cleanup' | |
| on: | |
| schedule: | |
| # Run every hour | |
| - cron: '0 * * * *' | |
| workflow_dispatch: {} | |
| jobs: | |
| report: | |
| runs-on: ubuntu-24.04 | |
| name: report | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: setup node | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 | |
| with: | |
| node-version: 22.21 | |
| # run script with 30m timeout | |
| - name: cleanup images | |
| env: | |
| CF_IMAGES_LINK: ${{ secrets.CF_IMAGES_LINK }} | |
| CF_IMAGES_TOKEN: ${{ secrets.CF_IMAGES_TOKEN }} | |
| run: node --experimental-strip-types ./scripts/images-cleanup.ts | |
| timeout-minutes: 30 | |