Skip to content

Commit

Permalink
ci: Update module_name filter step
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Nov 27, 2024
1 parent c9af6bb commit f75b3fa
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,27 @@ jobs:
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
id: module_names
with:
# TODO: Wire this up to the get_module_path.js script
script: |
return [...new Set(${{ steps.filter.outputs.modules_files }}
.map(path => path
.replace('tests/', '')
.replace('modules/nf-core/', '')
.split('/')
.slice(0, 2)
.filter(x => !x.startsWith('main.nf') && x !== 'tests' && x !== 'meta.yml' && x !== 'environment.yml')
.join('/'))
)
return [
...new Set(
${{ steps.filter.outputs.modules_files }}.map((path) =>
path
.replace("tests/", "")
.replace("modules/nf-core/", "")
.split("/")
.slice(0, 2)
.filter(
(x) =>
!x.startsWith("main.nf") &&
x !== "tests" &&
x !== "meta.yml" &&
x !== "environment.yml" &&
!x.endsWith(".snap") &&
!x.endsWith(".config")
)
.join("/")
)
];
- name: debug
run: |
Expand Down

0 comments on commit f75b3fa

Please sign in to comment.