Skip to content

Commit

Permalink
Merge #11127
Browse files Browse the repository at this point in the history
11127: internal: Set a timeout on the Octokit client r=lnicola a=lnicola

CC #11056

Co-authored-by: Laurențiu Nicola <[email protected]>
  • Loading branch information
bors[bot] and lnicola authored Dec 28, 2021
2 parents 5c11b36 + 5aa0d12 commit 05f7924
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/github-release/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ async function runOnce() {
core.info(`files: ${files}`);
core.info(`name: ${name}`);

const octokit = github.getOctokit(token);
const options = {
request: {
timeout: 30000,
}
};
const octokit = github.getOctokit(token, options);

// Delete the previous release since we can't overwrite one. This may happen
// due to retrying an upload or it may happen because we're doing the dev
Expand Down

0 comments on commit 05f7924

Please sign in to comment.