forked from mirrors/action-gh-release
regenerate
This commit is contained in:
parent
ef96a2eb52
commit
bb78d54396
5 changed files with 8 additions and 8 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue