Skip to content

Commit

Permalink
fix CI job for nested files
Browse files Browse the repository at this point in the history
  • Loading branch information
hspitzley-czi committed Apr 5, 2024
1 parent d2d4180 commit b56806b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/find-changed-packages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runs:
const path = require("path")
const fs = require("fs")
const changedFiles = ${{ steps.filter.outputs.changed_files }}
const changedDirs = changedFiles.map(f => path.dirname(f))
const changedDirs = changedFiles.map(f => path.dirname(f).split('/')[0])
const changedGoPackages = changedDirs.filter(d => fs.existsSync(path.join(d, "go.mod")))
const uniqueChangedGoPackages = [...new Set(changedGoPackages)];
Expand Down

0 comments on commit b56806b

Please sign in to comment.