mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-11 20:58:54 +00:00
Set a timeout on the Octokit client
This commit is contained in:
parent
5c11b363df
commit
5aa0d129de
1 changed files with 6 additions and 1 deletions
7
.github/actions/github-release/main.js
vendored
7
.github/actions/github-release/main.js
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue