Skip to content

Commit

Permalink
different sort method
Browse files Browse the repository at this point in the history
  • Loading branch information
jhongturney committed Apr 23, 2024
1 parent 5499df1 commit ca2b343
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39021,8 +39021,9 @@ async function run () {
core.info(`Found ${matchingFiles.length} files matching ${entry.directory}`)
const matchingDirs = new Set(matchingFiles.map(file => path.dirname(file)))
core.info(`Found ${matchingDirs.size} directories matching ${entry.directory}`)
let sortedMatchingDirs = Array.from(matchingDirs).sort()

for (const dir of matchingDirs.sort()) {
for (const dir of sortedMatchingDirs) {
core.info(`Creating entry for ${dir} with ecosystem ${entry['package-ecosystem']}`)
const newUpdate = clone(baseUpdate)
newUpdate.directory = dir
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ async function run () {
core.info(`Found ${matchingFiles.length} files matching ${entry.directory}`)
const matchingDirs = new Set(matchingFiles.map(file => path.dirname(file)))
core.info(`Found ${matchingDirs.size} directories matching ${entry.directory}`)
let sortedMatchingDirs = Array.from(matchingDirs).sort()

for (const dir of matchingDirs.sort()) {
for (const dir of sortedMatchingDirs) {
core.info(`Creating entry for ${dir} with ecosystem ${entry['package-ecosystem']}`)
const newUpdate = clone(baseUpdate)
newUpdate.directory = dir
Expand Down

0 comments on commit ca2b343

Please sign in to comment.