From b2392a9215ef1b33e8e622d7a9210f1f25d3c175 Mon Sep 17 00:00:00 2001 From: mashehu Date: Tue, 8 Apr 2025 12:14:41 +0200 Subject: [PATCH] handle filtered out moudles and subworkflow files --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0753b1b6df4e..5bd6a6d7335b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -118,7 +118,7 @@ jobs: - image=ubuntu22-full-x64 name: nf-core lint modules needs: nf-core-changes - if: ${{ (needs.nf-core-changes.outputs.modules == 'true') }} + if: ${{ (needs.nf-core-changes.outputs.modules == 'true' && needs.nf-core-changes.outputs.modules != '[]') }} strategy: fail-fast: false matrix: @@ -166,7 +166,7 @@ jobs: - image=ubuntu22-full-x64 name: nf-core lint subworkflows needs: nf-core-changes - if: ${{ (needs.nf-core-changes.outputs.subworkflows == 'true') }} + if: ${{ (needs.nf-core-changes.outputs.subworkflows == 'true' && needs.nf-core-changes.outputs.subworkflows != '[]') }} strategy: fail-fast: false matrix: