|
|
@ -22069,6 +22069,7 @@ try {
|
|
|
|
const gitHubToken = (0, import_core.getInput)("gitHubToken", { required: false });
|
|
|
|
const gitHubToken = (0, import_core.getInput)("gitHubToken", { required: false });
|
|
|
|
const branch = (0, import_core.getInput)("branch", { required: false });
|
|
|
|
const branch = (0, import_core.getInput)("branch", { required: false });
|
|
|
|
const workingDirectory = (0, import_core.getInput)("workingDirectory", { required: false });
|
|
|
|
const workingDirectory = (0, import_core.getInput)("workingDirectory", { required: false });
|
|
|
|
|
|
|
|
const wranglerVersion = (0, import_core.getInput)("wranglerVersion", { required: false });
|
|
|
|
const getProject = async () => {
|
|
|
|
const getProject = async () => {
|
|
|
|
const response = await (0, import_undici.fetch)(
|
|
|
|
const response = await (0, import_undici.fetch)(
|
|
|
|
`https://api.cloudflare.com/client/v4/accounts/${accountId}/pages/projects/${projectName}`,
|
|
|
|
`https://api.cloudflare.com/client/v4/accounts/${accountId}/pages/projects/${projectName}`,
|
|
|
@ -22084,7 +22085,7 @@ try {
|
|
|
|
$ export CLOUDFLARE_ACCOUNT_ID="${accountId}"
|
|
|
|
$ export CLOUDFLARE_ACCOUNT_ID="${accountId}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$$ npx wrangler@2 pages publish "${directory}" --project-name="${projectName}" --branch="${branch}"
|
|
|
|
$$ npx wrangler@${wranglerVersion} pages publish "${directory}" --project-name="${projectName}" --branch="${branch}"
|
|
|
|
`;
|
|
|
|
`;
|
|
|
|
const response = await (0, import_undici.fetch)(
|
|
|
|
const response = await (0, import_undici.fetch)(
|
|
|
|
`https://api.cloudflare.com/client/v4/accounts/${accountId}/pages/projects/${projectName}/deployments`,
|
|
|
|
`https://api.cloudflare.com/client/v4/accounts/${accountId}/pages/projects/${projectName}/deployments`,
|
|
|
|