diff --git a/index.js b/index.js index df16890..466a138 100644 --- a/index.js +++ b/index.js @@ -16124,7 +16124,7 @@ try { $ export CLOUDFLARE_ACCOUNT_ID="${accountId}" } - $$ npx -c wrangler@2 pages publish "${directory}" --project-name="${projectName}" --branch="${branch}" + $$ npx -c 'wrangler@2 pages publish "${directory}" --project-name="${projectName}" --branch="${branch}"' `; const response = await (0, import_undici.fetch)(`https://api.cloudflare.com/client/v4/accounts/${accountId}/pages/projects/${projectName}/deployments`, { headers: { Authorization: `Bearer ${apiToken}` } }); const { @@ -16175,7 +16175,7 @@ try { await createGitHubDeploymentStatus({ id: gitHubDeployment.id, url: pagesDeployment.url, - branch, + environmentName: branch, productionEnvironment }); } diff --git a/src/index.ts b/src/index.ts index 8c29298..a5d367b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -65,7 +65,7 @@ try { $ export CLOUDFLARE_ACCOUNT_ID="${accountId}" } - $$ npx -c wrangler@2 pages publish "${directory}" --project-name="${projectName}" --branch="${branch}" + $$ npx -c 'wrangler@2 pages publish "${directory}" --project-name="${projectName}" --branch="${branch}"' `; const response = await fetch( @@ -135,7 +135,7 @@ try { await createGitHubDeploymentStatus({ id: gitHubDeployment.id, url: pagesDeployment.url, - branch, + environmentName: branch, productionEnvironment, }); }