Skip to content

Commit

Permalink
Merge pull request #1389 from ucb-bar/more-agg-cleanup
Browse files Browse the repository at this point in the history
Remove stale conda env's after 2 days
  • Loading branch information
abejgonzalez committed Mar 9, 2023
2 parents ac9ac1c + 769f2f3 commit 0af8643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/cleanup-conda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ runs:
echo "Skipping removal of $envname since it cannot be parsed into a date"
else
NUM_DIFF=$(( ( $(date +%s) - $(date --date="$ENV_DATE" +%s) )/(60*60*24) ))
if (( $NUM_DIFF > 7 )); then
if (( $NUM_DIFF > 2 )); then
echo "Removing $envname since it is $NUM_DIFF days old."
conda env remove -n $envname
else
Expand Down

0 comments on commit 0af8643

Please sign in to comment.