File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -88,18 +88,19 @@ jobs:
88
88
- name : Generate diff between Main and PR branch
89
89
run : |
90
90
mkdir -p pr_branch/deployment_files
91
- mv ./artifact/main/.appcd pr_branch/deployment_files/
91
+ mv ./artifact/main/.appcd/charts/helm/scan_*/* pr_branch/deployment_files/
92
92
cd pr_branch
93
93
git config --local user.email "action@github.com"
94
94
git config --local user.name "GitHub Action"
95
95
git add deployment_files
96
96
git commit -m "staging deployment files from main to compare them"
97
- rm -rf deploment_files/*
98
- rm -rf deployment_files/.appcd
97
+ rm -rf deploment_files
99
98
cd ..
100
- mv artifact/${{ steps.extract_branch.outputs.branch }}/.appcd pr_branch/deployment_files/
99
+ mkdir -p pr_branch/deployment_files/
100
+ mv artifact/${{ steps.extract_branch.outputs.branch }}/.appcd/charts/helm/scan_*/* pr_branch/deployment_files/
101
101
cd pr_branch
102
- git diff --output=../diff.txt deployment_files/ | cat
102
+ git add .
103
+ git diff --staged --output=../diff.txt deployment_files/ | cat
103
104
cat ../diff.txt
104
105
- name : Comment PR with IaC Changes
105
106
uses : actions/github-script@v6
You can’t perform that action at this time.
0 commit comments