diff --git a/.github/workflows/frontend-pages.yml b/.github/workflows/frontend-pages.yml index bda029d..d6af8aa 100644 --- a/.github/workflows/frontend-pages.yml +++ b/.github/workflows/frontend-pages.yml @@ -115,9 +115,11 @@ jobs: # Prefer manual input, then repo variable, fallback to repo-name INPUT_NAME='${{ inputs.project_name }}' VAR_NAME='${{ vars.CF_PAGES_PROJECT_NAME }}' - if [ -n "$INPUT_NAME" ]; then PNAME="$INPUT_NAME"; - elif [ -n "$VAR_NAME" ]; then PNAME="$VAR_NAME"; - else PNAME="${GITHUB_REPOSITORY##*/}-frontend"; fi + if [ -n "$INPUT_NAME" ]; then PNAME_RAW="$INPUT_NAME"; + elif [ -n "$VAR_NAME" ]; then PNAME_RAW="$VAR_NAME"; + else PNAME_RAW="${GITHUB_REPOSITORY##*/}-frontend"; fi + # Normalize project name to lowercase to satisfy Cloudflare Pages naming + PNAME="${PNAME_RAW,,}" # Determine branch for Pages if [ "${INPUT_MODE}" = "pr" ]; then if [ -z "${INPUT_PR}" ]; then echo "pr_number is required when mode=pr"; exit 1; fi