File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,16 @@ jobs:
52
52
vm_creation_time=$(TZ=UTC date -d "$vm_creation_time_string" +%s)
53
53
54
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."
55
+ echo "::notice:: The VM ${vm_name} was created less then 1 hour ago and shouldn't be deleted yet. Skipping."
56
56
elif test true = "$(if test ! -f .cli-authenticated; then
57
57
./gh-cli-auth-as-app.sh &&
58
58
>.cli-authenticated # only authenticate once
59
59
fi &&
60
60
gh api repos/$GITHUB_REPOSITORY/actions/runners \
61
61
--jq '.runners[] | select(.name == "'$vm_name'") | .busy')"; then
62
- echo "The VM ${vm_name} is still busy."
62
+ echo "::notice:: The VM ${vm_name} is still busy."
63
63
else
64
- echo "The VM ${vm_name} was created more than 3 hours ago and wasn't deleted. Let's do that now."
64
+ echo "::warning:: The VM ${vm_name} was created more than 3 hours ago and wasn't deleted. Let's do that now."
65
65
az vm delete -n "$vm_name" -g ${{ secrets.AZURE_RESOURCE_GROUP }} --yes
66
66
az network nsg delete -n "$vm_name"-nsg -g ${{ secrets.AZURE_RESOURCE_GROUP }}
67
67
az network vnet delete -n "$vm_name"-vnet -g ${{ secrets.AZURE_RESOURCE_GROUP }}
You can’t perform that action at this time.
0 commit comments