File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 8888 - name : Generate diff between Main and PR branch
8989 run : |
9090 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/
9292 cd pr_branch
9393 git config --local user.email "action@github.com"
9494 git config --local user.name "GitHub Action"
9797 rm -rf deploment_files/*
9898 rm -rf deployment_files/.appcd
9999 cd ..
100- mv artifact/${{ steps.extract_branch.outputs.branch }}/.appcd pr_branch/deployment_files/
100+ mv artifact/${{ steps.extract_branch.outputs.branch }}/.appcd/charts/helm/scan_*/ pr_branch/deployment_files/
101101 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
103104 cat ../diff.txt
104105 - name : Comment PR with IaC Changes
105106 uses : actions/github-script@v6
You can’t perform that action at this time.
0 commit comments