Browse Source

use correct method to delete droplets (#2468)

Matthew R Kasun 2 years ago
parent
commit
002ac80d88
1 changed files with 2 additions and 2 deletions
  1. 2 2
      .github/workflows/deletedroplets.yml

+ 2 - 2
.github/workflows/deletedroplets.yml

@@ -38,7 +38,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"
@@ -95,7 +95,7 @@ jobs:
         if: success() || failure()
         run: |
           sleep 3h
-          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"