Set a timeout on the Octokit client

This commit is contained in:
Laurențiu Nicola 2021-12-28 10:34:14 +02:00
parent 5c11b363df
commit 5aa0d129de

View file

@ -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