From 06c1273ae7abe16afc07b3c261beef381048170b Mon Sep 17 00:00:00 2001 From: ThaMunsta Date: Sat, 15 Mar 2025 13:27:01 -0400 Subject: [PATCH] echo curl response --- .gitea/workflows/demo.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 191211d..36e8e96 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -45,8 +45,12 @@ jobs: echo $JSON_PAYLOAD # Update stack in Portainer (this redeploys it) - curl -X PUT "$PORTAINER_API_URL/stacks/$STACK_ID" \ + DEPLOY_RESPONSE=$(curl -X PUT "$PORTAINER_API_URL/stacks/$STACK_ID" \ -H "X-API-Key: $PORTAINER_TOKEN" \ -H "Content-Type: application/json" \ - --data "$JSON_PAYLOAD" + --data "$JSON_PAYLOAD") + + echo "Redeployed stack in Portainer. Response:" + echo $DEPLOY_RESPONSE + - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file