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