From 2c720e80ab62625d374deaf708418d21d9e93a76 Mon Sep 17 00:00:00 2001 From: Elijah Date: Thu, 1 Feb 2024 21:21:10 +0100 Subject: [PATCH] Fix deploy job exit codes and webhook ip --- .gitea/workflows/ci-pipeline.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-pipeline.yaml b/.gitea/workflows/ci-pipeline.yaml index ef60af2..4cf964f 100644 --- a/.gitea/workflows/ci-pipeline.yaml +++ b/.gitea/workflows/ci-pipeline.yaml @@ -77,9 +77,12 @@ jobs: - uses: actions/checkout@v4 - name: Trigger Remote Script run: | - response=$(curl -s -o /dev/null -w "%{http_code}" -X POST http://your-server-ip:5000/trigger-script -H "Authorization: SecretToken") + response=$(curl -s -o /dev/null -w "%{http_code}" -X POST http://45.150.187.54:5000/trigger-script -H "Authorization: SecretToken") if [ "$response" -ne 200 ]; then echo "Script execution failed with HTTP status $response" exit 1 + else + echo "Script execution successful" + exit 0 fi if: success() && github.ref == 'refs/heads/main'