Skip to content

Commit

Permalink
Fix loc reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ilitteri committed Nov 25, 2024
1 parent d12f31f commit 1ad4642
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/loc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,15 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Generate the loc report
id: loc-report
run: |
make loc
echo "content=$(cat loc_report.md)" >> $GITHUB_OUTPUT
- name: Post results in summary
run: |
echo "# `ethrex` lines of code report:\n\n" >> $GITHUB_STEP_SUMMARY
$(cat loc_report.md) >> $GITHUB_STEP_SUMMARY
echo "# `ethrex` lines of code report" >> $GITHUB_STEP_SUMMARY
cat loc_report.md >> $GITHUB_STEP_SUMMARY
- name: Post results to slack
uses: slackapi/[email protected]
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
blocks:
- type: "header"
text:
type: "plain_text"
text: ethrex lines of code report
- type: "section"
text:
type: "mrkdwn"
text: ${{steps.loc-report.outputs.content}}
env:
url: ${{ secrets.SLACK_WEBHOOK_URL }}
run: sh publish_loc.sh

0 comments on commit 1ad4642

Please sign in to comment.