forked from mirrors/action-gh-release
debug logging
This commit is contained in:
parent
d644a384fb
commit
cf2aed3a12
4 changed files with 6 additions and 0 deletions
|
@ -48,6 +48,7 @@ exports.release = (config, gh) => __awaiter(void 0, void 0, void 0, function* ()
|
|||
}
|
||||
catch (error) {
|
||||
if (error.status === 404) {
|
||||
console.log("Creating new release...");
|
||||
const tag_name = config.github_ref.replace("refs/tags/", "");
|
||||
const name = config.input_name || tag_name;
|
||||
const body = config.input_body;
|
||||
|
@ -63,6 +64,7 @@ exports.release = (config, gh) => __awaiter(void 0, void 0, void 0, function* ()
|
|||
return release.data;
|
||||
}
|
||||
else {
|
||||
console.log(`Unexpected error fetching github release for tag ${config.github_ref}: ${error}`);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue