Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
willdavidson05 committed Aug 14, 2024
1 parent bcd6147 commit 4498c98
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/entropy-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
fetch-depth: 0 # Ensure the action respects the desired fetch depth

- name: Process repository entropy
id: process_entropy
env:
PR_BRANCH: ${{ github.event.pull_request.head.ref }}
MAIN_BRANCH: ${{ github.event.pull_request.base.ref }}
Expand All @@ -33,20 +34,16 @@ jobs:
--repo_path '.' \
--pr_branch "$PR_BRANCH" \
--main_branch "$MAIN_BRANCH" > entropy_report.txt
- name: Format Entropy Report
id: format_report
run: |
echo "REPORT_CONTENT<<EOF" > report_content.txt
echo "\`\`\`" >> report_content.txt
cat entropy_report.txt >> report_content.txt
echo "\`\`\`" >> report_content.txt
echo "EOF" >> report_content.txt
echo "REPORT_CONTENT=$(cat report_content.txt)" >> $GITHUB_ENV
echo "::set-output name=content::$(cat report_content.txt)"
- name: PR comment
uses: thollander/actions-comment-pull-request@v2
with:
message: ${{ env.REPORT_CONTENT }}
message: ${{ steps.process_entropy.outputs.content }}
comment_tag: execution
mode: recreate

0 comments on commit 4498c98

Please sign in to comment.