Create create-matrix.js
This commit is contained in:
parent
63c5a3e2e2
commit
c575062cd7
|
@ -0,0 +1,8 @@
|
||||||
|
const file = require('./helpers/file')
|
||||||
|
|
||||||
|
file.list().then(files => {
|
||||||
|
const country = files.map(file => file.replace(/channels\/|\.m3u/gi, ''))
|
||||||
|
const matrix = { country }
|
||||||
|
const output = `::set-output name=matrix::${JSON.stringify(matrix)}`
|
||||||
|
console.log(output)
|
||||||
|
})
|
Loading…
Reference in New Issue