|
@@ -35,7 +35,7 @@ jobs:
|
|
|
if: success() || failure()
|
|
|
run: |
|
|
|
sleep 15m
|
|
|
- curl -X GET \
|
|
|
+ curl -X DELETE \
|
|
|
-H "Content-Type: application/json" \
|
|
|
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
|
|
|
"https://api.digitalocean.com/v2/droplets?tag_name=$TAG"
|
|
@@ -80,7 +80,7 @@ jobs:
|
|
|
if: success() || failure()
|
|
|
run: |
|
|
|
sleep 5h
|
|
|
- curl -X GET \
|
|
|
+ curl -X DELETE \
|
|
|
-H "Content-Type: application/json" \
|
|
|
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
|
|
|
"https://api.digitalocean.com/v2/droplets?tag_name=$TAG"
|