Skip to content

Commit 2899641

Browse files
authored
Merge pull request #1 from CorrectRoadH/patch-1
chore: extend the timeout time to 20 min
2 parents 580d5c5 + fda5e6c commit 2899641

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ const fg = require('fast-glob');
3535

3636
if (files.length && !/\/$/.test(dst)) {
3737
// 单文件
38-
const res = await oss.put(dst, resolve(files[0]))
38+
const res = await oss.put(dst, resolve(files[0]), {
39+
timeout: 1000*60*20
40+
})
3941
core.setOutput('url', res.url)
4042
} else if (files.length && /\/$/.test(dst)) {
4143
// 目录

0 commit comments

Comments
 (0)