curl
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 8s

This commit is contained in:
ThaMunsta
2025-03-15 14:15:23 -04:00
parent db88191fd4
commit 4a8d5c1609

View File

@@ -14,8 +14,9 @@ jobs:
PORTAINER_TOKEN: ${{ secrets.PORTAINER_TOKEN }}
PORTAINER_API_URL: https://portainer.dev.nervesocket.com/api
run: |
CURL=$(curl -s -H "X-API-Key: $PORTAINER_TOKEN" "$PORTAINER_API_URL/stacks")
echo $CURL
STACK_DATA=$(curl -s -H "X-API-Key: $PORTAINER_TOKEN" "$PORTAINER_API_URL/stacks" | jq -r ".[] | select(.Name==\"$STACK_NAME\") | {Id, EndpointId}")
echo "$STACK_DATA"
STACK_ID=$(echo "$STACK_DATA" | jq -r ".Id")
ENDPOINT_ID=$(echo "$STACK_DATA" | jq -r ".EndpointId")