We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 300182d commit a99784aCopy full SHA for a99784a
.github/workflows/cleanup-self-hosted-runners.yml
@@ -50,7 +50,7 @@ jobs:
50
vm_name=$(echo $active_vm | jq '.name')
51
# Use jq to extract and format the date-time string
52
vm_creation_time_string=$(echo $active_vm | jq -r '.timeCreated | sub("\\.[0-9]+[+-][0-9]+:[0-9]+$"; "") | sub("T"; " ")')
53
- vm_creation_time=$(TZ=UTC date -d $vm_creation_time_string +%s)
+ vm_creation_time=$(TZ=UTC date -d "$vm_creation_time_string" +%s)
54
55
if [ "$one_hour_ago" -lt "$vm_creation_time" ]; then
56
echo "::notice::The VM ${vm_name} was created less then 1 hour ago and shouldn't be deleted yet. Skipping."
0 commit comments