Skip to content

Commit

Permalink
ci: Add a job summary to lines of code workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
itislu committed Jul 26, 2024
1 parent ebd3df7 commit 4044844
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lines_of_code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
run : |
${{ env._CLOC_DIR }}/cloc --fmt=2 --include-lang="${{ env.LANGUAGES }}" . | tee ${{ env._CLOC_DIR }}/cloc_output.txt
echo "_LINES_OF_CODE=$(grep 'SUM' ${{ env._CLOC_DIR }}/cloc_output.txt | awk '{print $5}')" >> "$GITHUB_ENV"
${{ env._CLOC_DIR }}/cloc --md --include-lang="${{ env.LANGUAGES }}" . | tail -n +4 >> $GITHUB_STEP_SUMMARY
- name: 📑 Count lines by file
run : |
Expand Down

0 comments on commit 4044844

Please sign in to comment.