Create create-matrix.js

This commit is contained in:
Aleksandr Statciuk 2021-09-09 01:22:20 +03:00
parent 63c5a3e2e2
commit c575062cd7
1 changed files with 8 additions and 0 deletions

8
scripts/create-matrix.js Normal file
View File

@ -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)
})