File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 31
31
32
32
- name : Copy updated service folder to main branch
33
33
run : |
34
- SOURCE_PATH=/
34
+ SOURCE_PATH=services/${{ env.SERVICE_NAME }} /
35
35
DEST_PATH=main_branch/services/${{ env.SERVICE_NAME }}/
36
36
37
37
echo "Branch: ${{ env.BRANCH_NAME }}"
@@ -41,13 +41,22 @@ jobs:
41
41
42
42
if [ -d "$SOURCE_PATH" ]; then
43
43
echo "✅ Found source folder: $SOURCE_PATH"
44
+ echo "📁 Files and directories in $SOURCE_PATH:"
45
+ ls -la "$SOURCE_PATH"
46
+ echo "🔍 Tree structure of $SOURCE_PATH:"
47
+ find "$SOURCE_PATH" -type f | head -20
44
48
rm -rf "$DEST_PATH"
45
49
mkdir -p "$DEST_PATH"
46
50
cp -r "$SOURCE_PATH"/. "$DEST_PATH"
51
+ echo "✅ Copy completed"
47
52
else
48
53
echo "❌ Folder $SOURCE_PATH not found in branch."
49
- echo "Available directories:"
54
+ echo "Available directories in current working directory :"
50
55
ls -la
56
+ echo "Looking for services directory:"
57
+ find . -name "services" -type d
58
+ echo "All directories containing 'service' or similar:"
59
+ find . -name "*service*" -type d
51
60
exit 1
52
61
fi
53
62
You can’t perform that action at this time.
0 commit comments