From 769f2f39957c6a4b99bb333087946d124514ff05 Mon Sep 17 00:00:00 2001 From: abejgonzalez Date: Wed, 8 Mar 2023 16:29:09 -0800 Subject: [PATCH] Remove stale conda env's after 2 days --- .github/actions/cleanup-conda/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/cleanup-conda/action.yml b/.github/actions/cleanup-conda/action.yml index b9aebb67..3b0fdf88 100644 --- a/.github/actions/cleanup-conda/action.yml +++ b/.github/actions/cleanup-conda/action.yml @@ -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