From a9d2f18e1f4662e9f402592358228e6824d79413 Mon Sep 17 00:00:00 2001 From: ravi-kumar-pilla Date: Fri, 8 Mar 2024 21:44:39 -0600 Subject: [PATCH] change demo project path --- action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 3316a8a..71f85db 100644 --- a/action.yml +++ b/action.yml @@ -59,14 +59,14 @@ runs: python -m pip install --upgrade pip python -m pip install "kedro-viz>=7.1.0" shell: bash - - name: Navigate to Kedro-project - run: cd ${{ inputs.project_path }} - shell: bash - name: Consent to the use of Kedro-Telemetry - run: "echo 'consent: ${{ inputs.telemetry_consent }}' > .telemetry" + run: | + cd ${{ inputs.project_path }} + "echo 'consent: ${{ inputs.telemetry_consent }}' > .telemetry" shell: bash - name: Create build directory run: | + cd ${{ inputs.project_path }} if !(kedro viz build |& tee /dev/stderr | grep -i -q "Success!"); then exit 1 fi @@ -77,7 +77,7 @@ runs: with: github_token: ${{ inputs.github_token }} publish_branch: ${{ inputs.publish_branch }} - publish_dir: './build' + publish_dir: '${{ inputs.project_path }}/build' user_name: ${{ inputs.user_name }} user_email: ${{ inputs.user_email }} commit_message: ${{ inputs.commit_message }} @@ -86,7 +86,7 @@ runs: if: ${{ inputs.publishing_source == 'workflow' }} uses: actions/upload-pages-artifact@v3 with: - path: './build' + path: '${{ inputs.project_path }}/build' - name: Deploy to GitHub Pages if: ${{ inputs.publishing_source == 'workflow' }} uses: actions/deploy-pages@v4