|
|
|
@ -2071,7 +2071,7 @@ var require_core = __commonJS({
|
|
|
|
|
return inputs.map((input) => input.trim());
|
|
|
|
|
}
|
|
|
|
|
exports.getMultilineInput = getMultilineInput;
|
|
|
|
|
function getBooleanInput(name, options) {
|
|
|
|
|
function getBooleanInput2(name, options) {
|
|
|
|
|
const trueValue = ["true", "True", "TRUE"];
|
|
|
|
|
const falseValue = ["false", "False", "FALSE"];
|
|
|
|
|
const val = getInput2(name, options);
|
|
|
|
@ -2082,7 +2082,7 @@ var require_core = __commonJS({
|
|
|
|
|
throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}
|
|
|
|
|
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
|
|
|
|
|
}
|
|
|
|
|
exports.getBooleanInput = getBooleanInput;
|
|
|
|
|
exports.getBooleanInput = getBooleanInput2;
|
|
|
|
|
function setOutput2(name, value) {
|
|
|
|
|
const filePath = process.env["GITHUB_OUTPUT"] || "";
|
|
|
|
|
if (filePath) {
|
|
|
|
@ -22070,6 +22070,7 @@ try {
|
|
|
|
|
const branch = (0, import_core.getInput)("branch", { required: false });
|
|
|
|
|
const workingDirectory = (0, import_core.getInput)("workingDirectory", { required: false });
|
|
|
|
|
const wranglerVersion = (0, import_core.getInput)("wranglerVersion", { required: false });
|
|
|
|
|
const bundle = (0, import_core.getBooleanInput)("bundle", { required: false });
|
|
|
|
|
const getProject = async () => {
|
|
|
|
|
const response = await (0, import_undici.fetch)(
|
|
|
|
|
`https://api.cloudflare.com/client/v4/accounts/${accountId}/pages/projects/${projectName}`,
|
|
|
|
@ -22094,7 +22095,7 @@ try {
|
|
|
|
|
$ export CLOUDFLARE_ACCOUNT_ID="${accountId}"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$$ npx wrangler@${wranglerVersion} pages publish "${directory}" --project-name="${projectName}" --branch="${branch}"
|
|
|
|
|
$$ npx wrangler@${wranglerVersion} pages publish "${directory}" --project-name="${projectName}" --branch="${branch}" ${bundle ? "" : "--no-bundle"}
|
|
|
|
|
`;
|
|
|
|
|
const response = await (0, import_undici.fetch)(
|
|
|
|
|
`https://api.cloudflare.com/client/v4/accounts/${accountId}/pages/projects/${projectName}/deployments`,
|
|
|
|
|