Skip to content

Commit 05f7924

Browse files
bors[bot]lnicola
andauthored
Merge #11127
11127: internal: Set a timeout on the Octokit client r=lnicola a=lnicola CC #11056 Co-authored-by: Laurențiu Nicola <[email protected]>
2 parents 5c11b36 + 5aa0d12 commit 05f7924

File tree

1 file changed

+6
-1
lines changed
  • .github/actions/github-release

1 file changed

+6
-1
lines changed

.github/actions/github-release/main.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ async function runOnce() {
2121
core.info(`files: ${files}`);
2222
core.info(`name: ${name}`);
2323

24-
const octokit = github.getOctokit(token);
24+
const options = {
25+
request: {
26+
timeout: 30000,
27+
}
28+
};
29+
const octokit = github.getOctokit(token, options);
2530

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

0 commit comments

Comments
 (0)