Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH authored Apr 18, 2024
1 parent 580d5c5 commit fda5e6c
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 fda5e6c

Please sign in to comment.