-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Make clean up based on git date #1712
Conversation
|
git config --local user.name 'GitHub Actions' | ||
git config --local user.email '[email protected]' | ||
git add ${{ env.PREVIEW_DIR }} | ||
git commit --quiet -m "Clean up old preview directories" | ||
git pull --rebase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have to pull to work around race condition of preview site deployments happening in the background.
Add cron job to clean up workflow and switch from folder modified date to git commit date.
Currently setting to 12 days but we can adjust if we are hitting the limit again.