mirror of
https://github.com/iptv-org/iptv
synced 2026-11-23 01:24:14 -05:00
Create create-matrix.js
This commit is contained in:
1 parent
a2c6732aad
commit
61f08406a5
1 file changed
+8
@@ -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)
|
||||||
|
})
|
||||||
Reference in new issue
Block a user