Skip to content

Commit

Permalink
Handle empty file lists in Radon analysis workflow to prevent errors
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Nov 20, 2024
1 parent a01f769 commit 86daadf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/radon-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
run: pip install radon
- name: Create Radon's reports
run: |
radon cc $(git diff --name-only 2.0...HEAD) -j >cc.json
radon mi $(git diff --name-only 2.0...HEAD) -j >mi.json
radon hal $(git diff --name-only 2.0...HEAD) -j >hal.json
radon cc $(git diff --name-only 2.0...HEAD || echo "no_files") -j >cc.json
radon mi $(git diff --name-only 2.0...HEAD || echo "no_files") -j >mi.json
radon hal $(git diff --name-only 2.0...HEAD || echo "no_files") -j >hal.json
- name: Comment the results on the PR
uses: Libra-foundation/radon-comment@v0.1
with:
Expand Down

0 comments on commit 86daadf

Please sign in to comment.