From 2a76f10f46bf1cc97215bb8c3a3b95be0858486c Mon Sep 17 00:00:00 2001 From: Kutluhan Bayram Date: Mon, 23 Mar 2026 12:33:17 -0400 Subject: [PATCH] Skip manual smoke runs without URL unless strict mode is enabled --- .github/workflows/api-smoke-deployed.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/api-smoke-deployed.yml b/.github/workflows/api-smoke-deployed.yml index eff52a3..919aec0 100644 --- a/.github/workflows/api-smoke-deployed.yml +++ b/.github/workflows/api-smoke-deployed.yml @@ -49,9 +49,16 @@ jobs: echo "skip=true" >> "$GITHUB_OUTPUT" exit 0 fi - echo "::error::No target URL configured." - echo "::error::Provide workflow input 'api_url' or set repo variable/secret SMOKE_API_URL." - exit 1 + + if [[ "${{ vars.SMOKE_STRICT }}" == "true" ]]; then + echo "::error::No target URL configured." + echo "::error::Provide workflow input 'api_url' or set repo variable/secret SMOKE_API_URL." + exit 1 + fi + + echo "::notice::No target URL configured for manual run. Skipping." + echo "skip=true" >> "$GITHUB_OUTPUT" + exit 0 fi echo "Using API URL: $target"