Skip to content

Commit 86daadf

Browse files
committed
Handle empty file lists in Radon analysis workflow to prevent errors
1 parent a01f769 commit 86daadf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/radon-analysis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
run: pip install radon
1515
- name: Create Radon's reports
1616
run: |
17-
radon cc $(git diff --name-only 2.0...HEAD) -j >cc.json
18-
radon mi $(git diff --name-only 2.0...HEAD) -j >mi.json
19-
radon hal $(git diff --name-only 2.0...HEAD) -j >hal.json
17+
radon cc $(git diff --name-only 2.0...HEAD || echo "no_files") -j >cc.json
18+
radon mi $(git diff --name-only 2.0...HEAD || echo "no_files") -j >mi.json
19+
radon hal $(git diff --name-only 2.0...HEAD || echo "no_files") -j >hal.json
2020
- name: Comment the results on the PR
2121
uses: Libra-foundation/[email protected]
2222
with:

0 commit comments

Comments
 (0)