From 135bf7b530a3c1011a73476da3ab2080f1f2b089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Wed, 28 Feb 2024 14:50:05 +0100 Subject: [PATCH] Update paper-checks.yml --- .github/workflows/paper-checks.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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