mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
11 lines
345 B
JavaScript
11 lines
345 B
JavaScript
const glob = require('glob')
|
|
const file = require('./file.js')
|
|
|
|
file.list(['ad'], []).then(files => {
|
|
const country = files.map(file => file.replace(/channels\/|\.xml/gi, ''))
|
|
const days = country.map(() => 2)
|
|
const matrix = { country, days }
|
|
const output = `::set-output name=matrix::${JSON.stringify(matrix)}`
|
|
console.log(output)
|
|
})
|