Skip to content

Commit 031569c

Browse files
committed
reset workflow file
1 parent ed4f5c2 commit 031569c

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/AzdevLinter.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
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
@@ -46,6 +50,7 @@ jobs:
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 "$base_branch_pre"/"$base_branch"
4954
- name: Display PR Diff Modules
5055
run: |
5156
for mod in ${changed_module_list[@]}

.github/workflows/AzdevStyle.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
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
@@ -46,6 +50,7 @@ jobs:
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 "$base_branch_pre"/"$base_branch"
4954
- name: Display PR Diff Modules
5055
run: |
5156
for mod in ${changed_module_list[@]}

0 commit comments

Comments
 (0)