From 0f31b2206c6469698c935c36e9ca65592f46bf2c Mon Sep 17 00:00:00 2001 From: Tarun Kumar S Date: Mon, 16 Dec 2024 18:33:17 +0530 Subject: [PATCH] wrap it --- .github/workflows/testdriver.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testdriver.yml b/.github/workflows/testdriver.yml index 01bad20..03170ba 100644 --- a/.github/workflows/testdriver.yml +++ b/.github/workflows/testdriver.yml @@ -27,12 +27,15 @@ jobs: APP_URL=$(curl --silent http://127.0.0.1:4040/api/tunnels | jq -r .tunnels[0].public_url) echo "Generated URL: $APP_URL" echo "app_url=$APP_URL" >> $GITHUB_OUTPUT - cat $GITHUB_OUTPUT - name: Debug ngrok logs run: cat ngrok.log - name: Test Against URL run: | # Since we are still in the same job, ngrok is still running + if [ -z "$APP_URL" ]; then + echo "Error: URL is empty" + exit 1 + fi curl "$APP_URL/health-check" # test_url: