Skip to content

Commit

Permalink
Merge pull request #1 from CorrectRoadH/patch-1
Browse files Browse the repository at this point in the history
chore: extend the timeout time to 20 min
  • Loading branch information
JohnGuan authored Apr 18, 2024
2 parents 580d5c5 + fda5e6c commit 2899641
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ const fg = require('fast-glob');

if (files.length && !/\/$/.test(dst)) {
// 单文件
const res = await oss.put(dst, resolve(files[0]))
const res = await oss.put(dst, resolve(files[0]), {
timeout: 1000*60*20
})
core.setOutput('url', res.url)
} else if (files.length && /\/$/.test(dst)) {
// 目录
Expand Down

0 comments on commit 2899641

Please sign in to comment.