forked from opentiny/tiny-vue
fix: fix dirname generate in e2e github action (#995)
This commit is contained in:
parent
b8408b4c2b
commit
54f659ca69
|
@ -24,7 +24,11 @@ jobs:
|
|||
const regex = /\[(.*?)\]/
|
||||
const matches = prTitle.match(regex)
|
||||
if (matches && matches.length > 1 && matches[1]) {
|
||||
let components = matches[1].split(',').map(c => c.trim()).filter(c => /^[a-z\-]+$/.test(c)).map(c => `${c}/`)
|
||||
let components = matches[1]
|
||||
.split(',')
|
||||
.map((c) => c.trim())
|
||||
.filter((c) => /^[a-z\-\/]+$/.test(c))
|
||||
.map((c) => `"\\/${c}\\/"`)
|
||||
components = [...new Set(components)].slice(0, 3).join(' ')
|
||||
core.setOutput('testComponents', components)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue