Skip to content

Commit a99784a

Browse files
committed
Add quotes
1 parent 300182d commit a99784a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/cleanup-self-hosted-runners.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
vm_name=$(echo $active_vm | jq '.name')
5151
# Use jq to extract and format the date-time string
5252
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)
53+
vm_creation_time=$(TZ=UTC date -d "$vm_creation_time_string" +%s)
5454
5555
if [ "$one_hour_ago" -lt "$vm_creation_time" ]; then
5656
echo "::notice::The VM ${vm_name} was created less then 1 hour ago and shouldn't be deleted yet. Skipping."

0 commit comments

Comments
 (0)