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: