Ver código fonte

use correct method to delete droplets

Matthew R Kasun 2 anos atrás
pai
commit
e205c4e7a8
1 arquivos alterados com 2 adições e 2 exclusões
  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"