lint fix and build
This commit is contained in:
parent
104b6490a7
commit
5e3f23f92c
3 changed files with 7 additions and 7 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "action-gh-release",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -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…
Reference in a new issue