Skip to content

Commit 8f29cb3

Browse files
committed
IProvisioning.h Interface header not following coding guidelines
Reason for change: Solve workflow issue Test Procedure: verify build success and basic test Risks: Low Priority: P1 Signed-off-by: [email protected]
1 parent bcbabdd commit 8f29cb3

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/Validate_Interface_headers_incremental.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,25 @@ jobs:
2525
git fetch origin ${{ github.event.pull_request.base.ref }} --depth=1
2626
git diff --name-only origin/${{ github.event.pull_request.base.ref }} > changed_files.txt
2727
28+
- name: Filter only existing changed files
29+
id: filter_existing
30+
run: |
31+
touch existing_files.txt
32+
while IFS= read -r file; do
33+
if [ -f "$file" ]; then
34+
echo "$file" >> existing_files.txt
35+
else
36+
echo " $file file has been removed in your PR,hence skipping validation for the removed file"
37+
fi
38+
done < changed_files.txt
39+
2840
- name: Run validation script
2941
run: |
30-
python .github/workflows/validate_interface_headers_incremental.py changed_files.txt
42+
if [ -s existing_files.txt ]; then
43+
python .github/workflows/validate_interface_headers_incremental.py existing_files.txt
44+
else
45+
echo "No valid changed files to validate."
46+
fi
3147
3248
- name: Remove changed_files.txt
3349
run: |

0 commit comments

Comments
 (0)