From 350b0060352a351c9ea249e482440f39552a1456 Mon Sep 17 00:00:00 2001 From: Balaji Alwar Date: Fri, 10 May 2024 22:13:01 -0700 Subject: [PATCH] trying another approach --- .github/workflows/test_notebooks.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_notebooks.yml b/.github/workflows/test_notebooks.yml index bb3a30b..44ed421 100644 --- a/.github/workflows/test_notebooks.yml +++ b/.github/workflows/test_notebooks.yml @@ -26,10 +26,11 @@ jobs: - name: Change directory run: | - # Change to the GitHub workspace directory where the repository is checked out - cd /github/workspace/ - # find . -type f -exec sed -i 's|/__w/datahub-usage-analysis/datahub-usage-analysis|/github/workspace/datahub-usage-analysis/datahub-usage-analysis|g' {} + - + for file in $(find /__w/datahub-usage-analysis/datahub-usage-analysis -type f); do + new_path="${file/__w/github/workspace}" + mkdir -p "$(dirname "$new_path")" + mv "$file" "$new_path" + done - name: Get changed files id: changed-files