Explorar o código

Update main.yml

Luu hai 1 ano
pai
achega
31fc6c22e5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .github/workflows/main.yml

+ 1 - 1
.github/workflows/main.yml

@@ -72,7 +72,7 @@ jobs:
             echo "create=true" >> $GITHUB_ENV
           else
             echo "Release found. Deleting existing release."
-            RELEASE_ID=$(echo $RELEASE_EXISTS | jq -r '.[0].id')
+            RELEASE_ID=$(echo $RELEASE_EXISTS | jq -r '.id')
             curl -X DELETE -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/$REPO/releases/$RELEASE_ID
             echo "create=true" >> $GITHUB_ENV
           fi