regenerate
This commit is contained in:
parent
ef96a2eb52
commit
bb78d54396
5 changed files with 8 additions and 8 deletions
|
@ -67,12 +67,12 @@ exports.release = (config, gh) => __awaiter(void 0, void 0, void 0, function* ()
|
|||
}
|
||||
catch (error) {
|
||||
// presume a race with competing metrix runs
|
||||
console.log(`GitHub release failed with status: ${error.status}`);
|
||||
console.log(`⚠️ GitHub release failed with status: ${error.status}, retrying...`);
|
||||
return exports.release(config, gh);
|
||||
}
|
||||
}
|
||||
else {
|
||||
console.log(`Unexpected error fetching GitHub release for tag ${config.github_ref}: ${error}`);
|
||||
console.log(`⚠️ Unexpected error fetching GitHub release for tag ${config.github_ref}: ${error}`);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,6 @@ function run() {
|
|||
console.log(`🎉 Release ready at ${rel.html_url}`);
|
||||
}
|
||||
catch (error) {
|
||||
console.log(`Error: ${error}`);
|
||||
core_1.setFailed(error.message);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -12,13 +12,13 @@ const fs_1 = require("fs");
|
|||
exports.parseConfig = (env) => {
|
||||
return {
|
||||
github_token: env.GITHUB_TOKEN || "",
|
||||
github_ref: (env.GITHUB_REF || ""),
|
||||
github_ref: env.GITHUB_REF || "",
|
||||
github_repository: env.GITHUB_REPOSITORY || "",
|
||||
input_name: env.INPUT_NAME,
|
||||
input_body: env.INPUT_BODY,
|
||||
input_body_path: env.INPUT_BODY_PATH,
|
||||
input_files: (env.INPUT_FILES || "").split(","),
|
||||
input_draft: env.INPUT_DRAFT === 'true'
|
||||
input_draft: env.INPUT_DRAFT === "true"
|
||||
};
|
||||
};
|
||||
exports.paths = (patterns) => {
|
||||
|
|
|
@ -76,12 +76,14 @@ export const release = async (config: Config, gh: GitHub): Promise<Release> => {
|
|||
return release.data;
|
||||
} catch (error) {
|
||||
// presume a race with competing metrix runs
|
||||
console.log(`GitHub release failed with status: ${error.status}`);
|
||||
console.log(
|
||||
`⚠️ GitHub release failed with status: ${error.status}, retrying...`
|
||||
);
|
||||
return release(config, gh);
|
||||
}
|
||||
} else {
|
||||
console.log(
|
||||
`Unexpected error fetching GitHub release for tag ${config.github_ref}: ${error}`
|
||||
`⚠️ Unexpected error fetching GitHub release for tag ${config.github_ref}: ${error}`
|
||||
);
|
||||
throw error;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,6 @@ async function run() {
|
|||
}
|
||||
console.log(`🎉 Release ready at ${rel.html_url}`);
|
||||
} catch (error) {
|
||||
console.log(`Error: ${error}`);
|
||||
setFailed(error.message);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue