Skip to content

Commit f6c7f8b

Browse files
committed
Check match
1 parent 9e1af42 commit f6c7f8b

File tree

1 file changed

+3
-2
lines changed
  • .github/actions/https-everywhere-labeller

1 file changed

+3
-2
lines changed

.github/actions/https-everywhere-labeller/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const axios = require('axios');
66
const unzip = require('unzipper');
77
const context = github.context;
88
const minimatch = require('minimatch');
9-
const rulesetGlob = '*.xml';
9+
const rulesetGlob = 'src/chrome/content/rules/*.xml';
1010

1111
let ProgressBar = require('progress');
1212
let alexaLabels = ['top-1m', 'top-100k', 'top-10k', 'top-1k', 'top-100'];
@@ -95,7 +95,8 @@ async function run(alexa) {
9595
const fileList = response.data
9696

9797
fileList.forEach(file => {
98-
console.log(typeof file.filename);
98+
console.log(file.filename);
99+
console.log(minimatch(file.filename, rulesetGlob));
99100
if(minimatch(file.filename, rulesetGlob)){
100101
console.log('passed match');
101102

0 commit comments

Comments
 (0)