From 5aa0d129de725eee28099c6f52ba495d135b6c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Tue, 28 Dec 2021 10:34:14 +0200 Subject: [PATCH] Set a timeout on the Octokit client --- .github/actions/github-release/main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/github-release/main.js b/.github/actions/github-release/main.js index c8145f63c2..e8dba39873 100644 --- a/.github/actions/github-release/main.js +++ b/.github/actions/github-release/main.js @@ -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