From dc9a0f0d6ce9f4f0eaff289f3b593d2ec35f28b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Nowak?= Date: Tue, 14 Nov 2023 09:56:24 +0100 Subject: [PATCH] single step with if --- .github/workflows/test-kedro-new.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test-kedro-new.yml b/.github/workflows/test-kedro-new.yml index 848869c..1e83660 100644 --- a/.github/workflows/test-kedro-new.yml +++ b/.github/workflows/test-kedro-new.yml @@ -35,22 +35,20 @@ jobs: - name: Show kedro info run: kedro info - - name: Run kedro new (local) - if: matrix.starter == '.' + - name: Run kedro new run: | - kedro new \ - --starter ${{ matrix.starter }} \ - --directory ${{ matrix.directory }} \ - --config tests/${{ matrix.directory }}/config.yml - - - name: Run kedro new (remote) - if: matrix.starter != '.' - run: | - kedro new \ - --starter ${{ matrix.starter }} \ - --directory ${{ matrix.directory }} \ - --checkout ${{ matrix.branch_name }} \ - --config tests/${{ matrix.directory }}/config.yml + if [[ "${{ matrix.starter }}" == "." ]]; then + kedro new + --starter ${{ matrix.starter }} + --directory ${{ matrix.directory }} + --config tests/${{ matrix.directory }}/config.yml + else + kedro new + --starter ${{ matrix.starter }} + --directory ${{ matrix.directory }} + --checkout ${{ matrix.branch_name }} + --config tests/${{ matrix.directory }}/config.yml + fi - name: Check that the project directory exists run: |