mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-07-05 22:53:15 +07:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
4ef78fc181 |
2
main.js
2
main.js
@ -33,7 +33,7 @@ function getFrom(from, username) {
|
|||||||
async function getAttachments(attachments) {
|
async function getAttachments(attachments) {
|
||||||
const globber = await glob.create(attachments.split(',').join('\n'))
|
const globber = await glob.create(attachments.split(',').join('\n'))
|
||||||
const files = await globber.glob()
|
const files = await globber.glob()
|
||||||
return files.map(f => ({ path: f }))
|
return files.map(f => ({ path: f, cid: f.replace(/^.*[\\\/]/, '')}))
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
Reference in New Issue
Block a user