Update create-matrix.js

This commit is contained in:
Aleksandr Statciuk 2021-09-09 01:32:42 +03:00
parent c936f43c3e
commit 85eb26abf0
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
const file = require('./helpers/file') const file = require('./helpers/file')
file.list().then(files => { file.list().then(files => {
files = files.filter(file => file !== 'channels/unsorted.m3u')
const country = files.map(file => file.replace(/channels\/|\.m3u/gi, '')) const country = files.map(file => file.replace(/channels\/|\.m3u/gi, ''))
const matrix = { country } const matrix = { country }
const output = `::set-output name=matrix::${JSON.stringify(matrix)}` const output = `::set-output name=matrix::${JSON.stringify(matrix)}`