mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 10:44:19 +00:00
lint fix and build
This commit is contained in:
parent
59b9126341
commit
9f3b580ccc
3 changed files with 7 additions and 7 deletions
|
@ -148,10 +148,8 @@ export const release = async (
|
|||
maxRetries: number = 3
|
||||
): Promise<Release> => {
|
||||
if (maxRetries <= 0) {
|
||||
console.log(
|
||||
`❌ Too many retries. Aborting...`
|
||||
);
|
||||
throw new Error("Too many retries.")
|
||||
console.log(`❌ Too many retries. Aborting...`);
|
||||
throw new Error("Too many retries.");
|
||||
}
|
||||
|
||||
const [owner, repo] = config.github_repository.split("/");
|
||||
|
@ -251,7 +249,9 @@ export const release = async (
|
|||
} catch (error) {
|
||||
// presume a race with competing metrix runs
|
||||
console.log(
|
||||
`⚠️ GitHub release failed with status: ${error.status}, retrying... (${maxRetries - 1} retries remaining)`
|
||||
`⚠️ GitHub release failed with status: ${
|
||||
error.status
|
||||
}, retrying... (${maxRetries - 1} retries remaining)`
|
||||
);
|
||||
return release(config, releaser, maxRetries - 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue