Old Build Cleanup #359
This file contains 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: Old Build Cleanup | |
# This GitHub Action Workflow is runing on the GFDL_ACS_CIINTEL cluster | |
# This will delete all build directories older than 30 days | |
# Build directories are on the cloud at /contrib/fv3/2023.2.0 | |
on: | |
schedule: | |
# run daily at midnight | |
- cron: '0 0 * * *' | |
jobs: | |
delete: | |
if: github.repository == 'NOAA-GFDL/GFDL_atmos_cubed_sphere' | |
runs-on: [gfdlacsciintel] | |
name: Delete Builds | |
steps: | |
- run: find /contrib/fv3/2023.2.0/GFDL_atmos_cubed_sphere/refs/pull -maxdepth 1 -mindepth 1 -mtime +30 -type d -print -exec rm -rf "{}" \; |