File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -64,20 +64,18 @@ jobs:
64
64
path : ./artifact/pr_artifacts
65
65
- name : Generate diff between Main and PR branch
66
66
run : |
67
+ tree
67
68
mkdir -p pr_branch/deployment_files
68
- mv ./artifact/main/ pr_branch/deployment_files /
69
- cd pr_branch
69
+ cd ./artifact/main/
70
+ git init
70
71
git config --local user.email "bot@appcd.com"
71
72
git config --local user.name "AppCD Bot"
72
- git add deployment_files
73
+ git add .
73
74
git commit -m "staging deployment files from main to compare them"
74
- rm -rf deploment_files
75
- cd ..
76
- mkdir -p pr_branch/deployment_files/
77
- cp -R artifact/pr_artifacts/ pr_branch/deployment_files/
78
- cd pr_branch
75
+ rm -rf *
76
+ cp -R ../pr_artifacts .
79
77
git add .
80
- git diff --staged --output=../diff.txt deployment_files/ | cat
78
+ git diff --staged --output=../diff.txt . | cat
81
79
cat ../diff.txt
82
80
- name : Comment PR with IaC Changes
83
81
uses : actions/github-script@v6
You can’t perform that action at this time.
0 commit comments