File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1818 steps :
1919 - name : Checkout CLI extension repo
2020 uses : actions/checkout@v4
21+ with :
22+ fetch-depth : 1
23+ sparse-checkout : |
24+ .github
2125 - name : Azdev Env Setup
2226 uses : ./.github/actions/env-setup
2327 - name : Get Diff Files
4650 cat changed_files
4751 cat changed_files | grep src/ | awk -F"src/" '{print $2}'| grep / | awk -F"/" '{print $1}' | sort | uniq
4852 echo "changed_module_list=$(cat changed_files | grep src/ | awk -F"src/" '{print $2}'| grep / | awk -F"/" '{print $1}' | sort | uniq | xargs)" >> $GITHUB_ENV
53+ git checkout -f "$base_branch_pre"/"$base_branch"
4954 - name : Display PR Diff Modules
5055 run : |
5156 for mod in ${changed_module_list[@]}
7782 # always use the latest index.json and scripts from base branch
7883 git checkout "$base_branch_pre"/"$base_branch" -- scripts
7984 git checkout "$base_branch_pre"/"$base_branch" -- src/index.json
85+ git checkout "$base_branch_pre"/"$base_branch" -- .github
8086 merge_base=$(git merge-base HEAD "$base_branch_pre"/"$base_branch")
8187 echo merge_base: "$merge_base"
8288
Original file line number Diff line number Diff line change 1818 steps :
1919 - name : Checkout CLI extension repo
2020 uses : actions/checkout@v4
21+ with :
22+ fetch-depth : 1
23+ sparse-checkout : |
24+ .github
2125 - name : Azdev Env Setup
2226 uses : ./.github/actions/env-setup
2327 - name : Get Diff Files
4650 cat changed_files
4751 cat changed_files | grep src/ | awk -F"src/" '{print $2}'| grep / | awk -F"/" '{print $1}' | sort | uniq
4852 echo "changed_module_list=$(cat changed_files | grep src/ | awk -F"src/" '{print $2}'| grep / | awk -F"/" '{print $1}' | sort | uniq | xargs)" >> $GITHUB_ENV
53+ git checkout -f "$base_branch_pre"/"$base_branch"
4954 - name : Display PR Diff Modules
5055 run : |
5156 for mod in ${changed_module_list[@]}
7681 git checkout -f "$diff_branch"
7782 # always use the latest index.json and scripts from base branch
7883 git checkout "$base_branch_pre"/"$base_branch" -- scripts
79- git checkout "$base_branch_pre"/"$base_branch" -- src/index.json
84+ git checkout "$base_branch_pre"/"$base_branch" -- src/index.json
85+ git checkout "$base_branch_pre"/"$base_branch" -- .github
8086 merge_base=$(git merge-base HEAD "$base_branch_pre"/"$base_branch")
8187 echo merge_base: "$merge_base"
8288
You can’t perform that action at this time.
0 commit comments