From 5b143024f2b0321642b4785ca2cac8e6a4bb9d7a Mon Sep 17 00:00:00 2001 From: TallblokeUK Date: Fri, 4 Sep 2026 00:30:01 +0100 Subject: [PATCH] ci: reject an empty project-name input before running Playwright --- .github/workflows/playwright-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/playwright-test.yml b/.github/workflows/playwright-test.yml index a23603326..becb1949c 100644 --- a/.github/workflows/playwright-test.yml +++ b/.github/workflows/playwright-test.yml @@ -252,6 +252,7 @@ jobs: # The names arrive through the environment rather than being pasted into # the script, and are split into an array without pathname expansion, so # no input value is ever interpreted as shell or as a glob. + [[ -n "${PLAYWRIGHT_PROJECTS// /}" ]] || { echo "The project-name input is empty; nothing to run." >&2; exit 1; } read -ra projects <<< "$PLAYWRIGHT_PROJECTS" project_args=() for project in "${projects[@]}"; do