Skip to content

Commit 7e9da3b

Browse files
updated folder and branch resolution
1 parent 1b1c9f1 commit 7e9da3b

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

t.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
branch_name="feature/test"
2+
IFS='/' read -ra folders <<< "$branch_name"
3+
echo $folders

tasks/dbt-docs-publish-to-repo/action.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ runs:
8888
8989
cd wwwroot
9090
91-
branch_name=$(grep -r "$${{ steps.get-branch-name.outputs.branch-name }}$" "$branches_file_path")
92-
IFS='/' read -ra folders <<< "${branch_name:9}"
91+
echo "Branch Name: ${{ steps.get-branch-name.outputs.branch-name }}"
92+
IFS='/' read -ra folders <<< "${{ steps.get-branch-name.outputs.branch-name }}"
9393
9494
for folder in "${folders[@]}"; do
9595
if test -d $folder; then
@@ -98,12 +98,11 @@ runs:
9898
echo "Directory $folder does not exists ... creating it"
9999
mkdir $folder
100100
fi
101-
echo "current: $folder"
102-
echo "target: $target_folder"
103-
manifest_file_path="../$manifest_file_path"
104-
catalog_file_path="../$catalog_file_path"
105-
index_file_path="../$index_file_path"
106101
cd $folder
102+
echo "current: $folder"
103+
manifest_file_path="../$manifest_file_path"
104+
catalog_file_path="../$catalog_file_path"
105+
index_file_path="../$index_file_path"
107106
done
108107
109108
cp -f $manifest_file_path .

0 commit comments

Comments
 (0)