50
50
name : nf-core-changes
51
51
runs-on : ubuntu-latest
52
52
outputs :
53
- tags : ${{ steps.filter.outputs.changes }}
54
- modules : ${{ steps.tags.outputs.modules }}
55
- subworkflows : ${{ steps.tags.outputs.subworkflows }}
53
+ # https://github.com/dorny/paths-filter?tab=readme-ov-file#custom-processing-of-changed-files
54
+ modules : ${{ steps.filter.outputs.modules }}
55
+ modules_files : ${{ steps.filter.outputs.modules_files }}
56
+ subworkflows : ${{ steps.filter.outputs.subworkflows}}
57
+ subworkflows_files : ${{ steps.filter.outputs.subworkflows_files }}
56
58
steps :
57
59
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
58
60
with :
@@ -71,32 +73,20 @@ jobs:
71
73
token : " "
72
74
list-files : " json"
73
75
74
- - name : Fetch module tags
75
- id : module-tags
76
- if : steps.filter.outputs.modules == 'true'
77
- run : |
78
- echo "modules=${{ steps.filter.outputs.modules }}" >> $GITHUB_OUTPUT
79
-
80
- - name : Fetch subworkflows tags
81
- id : subworkflow-tags
82
- if : steps.filter.outputs.subworkflows == 'true'
83
- run : |
84
- echo "subworkflows=${{ steps.filter.outputs.subworkflows }}" >> $GITHUB_OUTPUT
85
-
86
76
- name : debug
87
77
run : |
88
- echo ${{ steps.module-tags .outputs.modules }}
89
- echo ${{ steps.subworkflow-tags .outputs.subworkflows }}
78
+ echo ${{ steps.filter .outputs.modules_files }}
79
+ echo ${{ steps.filter .outputs.subworkflows_files }}
90
80
91
81
nf-core-lint-modules :
92
82
runs-on : ${{ github.event.inputs.runners || 'self-hosted' }}
93
83
name : nf-core lint modules
94
84
needs : nf-core-changes
95
- if : ${{ (needs.nf-core-changes.outputs.modules != '[] ') }}
85
+ if : ${{ (needs.nf-core-changes.outputs.modules == 'true ') }}
96
86
strategy :
97
87
fail-fast : false
98
88
matrix :
99
- tags : " ${{ fromJson(needs.nf-core-changes.outputs.modules ) }}"
89
+ tags : " ${{ fromJson(needs.nf-core-changes.outputs.modules_files ) }}"
100
90
steps :
101
91
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
102
92
@@ -134,11 +124,11 @@ jobs:
134
124
runs-on : ubuntu-latest
135
125
name : nf-core lint subworkflows
136
126
needs : nf-core-changes
137
- if : ${{ (needs.nf-core-changes.outputs.subworkflows != '[] ') }}
127
+ if : ${{ (needs.nf-core-changes.outputs.subworkflows != 'true ') }}
138
128
strategy :
139
129
fail-fast : false
140
130
matrix :
141
- tags : " ${{ fromJson(needs.nf-core-changes.outputs.subworkflows ) }}"
131
+ tags : " ${{ fromJson(needs.nf-core-changes.outputs.subworkflows_files ) }}"
142
132
steps :
143
133
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
144
134
0 commit comments