Skip to content

Commit

Permalink
Create new deployable
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-kohen-by committed Jan 30, 2023
1 parent 52afb49 commit d570f48
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,15 @@ function main() {
}
},
onAbuseLimit: (retryAfter = 0, options) => {
// does not retry, only logs a warning
console.warn(`Abuse detected for request ${options.method} ${options.url}`);
if (options.request.retryCount === 0) {
// only retries once
console.log(`Retrying after ${retryAfter} seconds!`);
return true;
}
},
},
previews: ['ant-man']
previews: ['ant-man'],
});
if (onlyDeactivateDeployments === 'true') {
deleteDeployment = false;
Expand Down
6 changes: 5 additions & 1 deletion lib/execute.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/execute.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d570f48

Please sign in to comment.