Skip to content

Commit

Permalink
fix arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal authored Aug 4, 2023
1 parent c7f35c0 commit 5abddfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changed-files/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ async function run() {
? requiredPathsInput.split(",")
: [];

requiredPaths = requiredPaths.map(path => path.replace(/\n/g, '').trim());

process.env.GH_TOKEN = accessToken;

let prNumber;
Expand Down Expand Up @@ -139,6 +141,8 @@ async function run() {
});
}

changedPaths = changedPaths.filter(path => path.trim() !== '');

let requiredPathsMatched = true;
for (const requiredPath of requiredPaths) {
const matchedPaths = glob.sync(requiredPath, {
Expand Down

0 comments on commit 5abddfa

Please sign in to comment.