diff --git a/.github/workflows/periphery.yml b/.github/workflows/periphery.yml index baaa88628a..e372921cb3 100644 --- a/.github/workflows/periphery.yml +++ b/.github/workflows/periphery.yml @@ -20,4 +20,13 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Periphery + id: periphery run: ./scripts/periphery.sh + - uses: mshick/add-pr-comment@v2 + with: + message: | + Found ${{ steps.periphery.outputs.unused_count }} unused code occurences +
+ Expand + ${{ steps.periphery.outputs.detailed_output }} +
diff --git a/scripts/periphery.sh b/scripts/periphery.sh index 286f7f12c3..09a85ecf29 100755 --- a/scripts/periphery.sh +++ b/scripts/periphery.sh @@ -24,3 +24,6 @@ unusedCount=$(wc -l <<< "$detailedOutput" | tr -d '[:space:]') echo "$detailedOutput" echo "Total unused instances $unusedCount" + +echo "detailed_output=test" >> $GITHUB_OUTPUT +echo "unused_count=$unusedCount" >> $GITHUB_OUTPUT