From c575062cd77dc17714d76690f8e870e49a1f1a35 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 9 Sep 2021 01:22:20 +0300 Subject: [PATCH] Create create-matrix.js --- scripts/create-matrix.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/create-matrix.js diff --git a/scripts/create-matrix.js b/scripts/create-matrix.js new file mode 100644 index 000000000..19b36270c --- /dev/null +++ b/scripts/create-matrix.js @@ -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) +})