From 6c0f2f1288ce3f11ddeda5203c94c49d3a961304 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Tue, 19 Nov 2024 09:53:08 +0300 Subject: [PATCH] Fix login issue --- .github/workflows/auto_deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto_deploy.yml b/.github/workflows/auto_deploy.yml index b7318f99c..28bf562b0 100644 --- a/.github/workflows/auto_deploy.yml +++ b/.github/workflows/auto_deploy.yml @@ -6,7 +6,7 @@ # separate terms of service, privacy policy, and support # documentation. -name: Java CI with Maven +name: Auto Deploy Workflow on: # [push] @@ -70,6 +70,7 @@ jobs: - name: Login to server run: | response=$(curl -X POST -H "Accept: Application/json" -H "Content-Type: application/json" ${{ secrets.PRODUCTION_SERVER_URL }}/rest/v2/users/authenticate -d '{"email":"${{ secrets.USER_NAME }}","password":"${{ secrets.PASSWORD }}"}' -c cookie.txt) + echo $response success=$(echo $response | jq -r '.success') if [ "$success" != "true" ]; then echo "Login failed"