mirror of https://github.com/iptv-org/iptv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
269 B
JavaScript
9 lines
269 B
JavaScript
3 years ago
|
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)
|
||
|
})
|