Skip to content

Commit

Permalink
Merge pull request #6 from fabidick22/refactor-outputs
Browse files Browse the repository at this point in the history
refactor: build app
  • Loading branch information
fabidick22 authored Sep 13, 2022
2 parents 89c2983 + 772818e commit d7cd639
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8870,8 +8870,10 @@ async function setOutputs(files) {
pathsChanged.push(file.filename.split("/").slice(0, -1).join("/"))
filesChanged.push(file.filename)
})
core.setOutput("paths_changed", JSON.stringify([...new Set(pathsChanged)]))
core.setOutput("file_changed", JSON.stringify(filesChanged))
core.setOutput("paths_list", JSON.stringify([...new Set(pathsChanged)]))
core.setOutput("file_list", JSON.stringify([...new Set(filesChanged)]))
core.setOutput("paths_str", [...new Set(pathsChanged)].join())
core.setOutput("file_str", [...new Set(filesChanged)].join())
}

const main = async () => {
Expand All @@ -8895,7 +8897,7 @@ const main = async () => {
})

if (filteredFiles.length === 0) {
console.log("No matchs found.")
console.log("No matches found.")
console.log(`Raw input: ${path}`)
console.log(`Regex: ${regExp.toString()}`)
}
Expand Down

0 comments on commit d7cd639

Please sign in to comment.