From 3b84211723362d01b848eab143727e39af411202 Mon Sep 17 00:00:00 2001 From: 0xCodercrane <108444211+0xcodercrane@users.noreply.github.com> Date: Thu, 4 May 2023 01:10:48 +0800 Subject: [PATCH] Update cloudflare-deploy.yml --- .github/workflows/cloudflare-deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cloudflare-deploy.yml b/.github/workflows/cloudflare-deploy.yml index 89e1953..326640e 100644 --- a/.github/workflows/cloudflare-deploy.yml +++ b/.github/workflows/cloudflare-deploy.yml @@ -35,7 +35,8 @@ jobs: PRODUCTION_BRANCH: "development" OUTPUT_DIRECTORY: "static" run: | - projectName=$(echo $REPOSITORY | sed 's/\//-/g') + IFS='/' read -ra fields <<< "$REPOSITORY" + projectName="${fields[1]}" echo $projectName wrangler pages project list > project_list.txt if grep -q $projectName project_list.txt; then