From d17609e3ebd10759b849e32d0d3f291401ece341 Mon Sep 17 00:00:00 2001 From: mashehu Date: Thu, 16 Jan 2025 17:20:23 +0100 Subject: [PATCH] use correct if checks --- .github/workflows/nf-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nf-test.yml b/.github/workflows/nf-test.yml index 44f70b013e8..db405f2c283 100644 --- a/.github/workflows/nf-test.yml +++ b/.github/workflows/nf-test.yml @@ -73,7 +73,7 @@ jobs: - name: get number of shards id: set-shards - if: ${{ steps.list.outputs.components != '[]' }} + if: ${{ steps.list.outputs.components != '' }} uses: ./.github/actions/get-shards env: NFT_VER: ${{ env.NFT_VER }} @@ -147,7 +147,7 @@ jobs: echo "filtered_paths=${FILTERED}" >> $GITHUB_OUTPUT - name: Run nf-test Action - if: ${{steps.filter.outputs.filtered_paths != '[]'}} + if: ${{steps.filter.outputs.filtered_paths != ''}} uses: ./.github/actions/nf-test-action env: SENTIEON_ENCRYPTION_KEY: ${{ secrets.SENTIEON_ENCRYPTION_KEY }} @@ -178,7 +178,7 @@ jobs: run: exit 0 - name: If no tests run, but filtered_paths was not empty and no tests succeeded, fail - if: ${{ needs.nf-test.outputs.filtered_paths != '[]' && !contains(needs.*.result, 'success') }} + if: ${{ needs.nf-test.outputs.filtered_paths != '' && !contains(needs.*.result, 'success') }} run: exit 1 - name: debug-print