We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d1ebde commit 3fb438cCopy full SHA for 3fb438c
.github/workflows/cleanup-self-hosted-runners.yml
@@ -50,7 +50,7 @@ jobs:
50
vm_creation_time_string="$(echo $active_vm |
51
jq -r '.timeCreated | sub("\\.[0-9]+[+-][0-9]+:[0-9]+$"; "") | sub("T"; " ")')"
52
vm_creation_time=$(TZ=UTC date -d "$vm_creation_time_string" +%s)
53
-
+
54
if [ "$one_hour_ago" -lt "$vm_creation_time" ]; then
55
echo "The VM ${vm_name} was created less then 1 hour ago and shouldn't be deleted yet. Skipping."
56
elif test true = "$(if test ! -f .cli-authenticated; then
0 commit comments