diff --git a/.github/workflows/paper-checks.yml b/.github/workflows/paper-checks.yml index 59a8a50..e21279f 100644 --- a/.github/workflows/paper-checks.yml +++ b/.github/workflows/paper-checks.yml @@ -33,14 +33,14 @@ jobs: - name: install CLOC run: sudo apt install cloc - name: run CLOC - run: cloc --quiet --report-file=cloc-results.txt ${{ github.workspace }} - - name: Post results - run: | - echo -e "\`\`\`\nSoftware report:\n\n$(cat cloc-results.txt)\n\`\`\`" > cloc-results.txt - gh issue comment ${{ github.event.inputs.issue_id }} --body-file cloc-results.txt + run: | + cloc --quiet --report-file=cloc-results.txt ${{ github.workspace }} + echo -e "**Software report:**\n\n\`\`\`\n$(cat cloc-results.txt)\n\`\`\`" > cloc-results.txt - name: List Git Authors run: | (git shortlog -sn --no-merges --branches .) > git-authors.txt - echo -e "\`\`\`\nThe following historical commit information, by author, was found:\n\n$(cat git-authors.txt)\n\`\`\`" > git-authors.txt - cat git-authors.txt - gh issue comment ${{ github.event.inputs.issue_id }} --body-file git-authors.txt + echo -e "**Commit count by author**:\n\n\`\`\`\n$(cat git-authors.txt)\n\`\`\`" > git-authors.txt + - name: Post results + run: | + echo -e "$(cat cloc-results.txt)\n\n$(cat git-authors.txt)\n" > code-stats.txt + gh issue comment ${{ github.event.inputs.issue_id }} --body-file code-stats.txt