We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8958d5 commit 32f5294Copy full SHA for 32f5294
action.js
@@ -37,9 +37,9 @@ const setFromPath = octokit => owner => async repo => {
37
38
const contentsUrlDoesMatch = file => target => {
39
const contents_url = decodeURIComponent(file.contents_url);
40
- const contents_path = contents_url.substring(contents_url.indexOf("contents/"));
41
- const doesMatch = minimatch(contents_url, `contents/${target}`);
42
- console.log(contents_url, `contents/${target}`, doesMatch);
+ const contents_path = contents_url.substring(contents_url.indexOf("contents/"), contents_url.indexOf("?ref="));
+ const doesMatch = minimatch(contents_path, `contents/${target}`);
+ console.log(contents_path, `contents/${target}`, doesMatch);
43
return doesMatch;
44
};
45
0 commit comments