Skip to content

Commit

Permalink
send file to github output
Browse files Browse the repository at this point in the history
  • Loading branch information
westin-m committed Oct 23, 2024
1 parent 200e3f0 commit ad208eb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ jobs:
- name: Set comment content
shell: bash
run: |
cat CodeCoverage/SummaryGithub.md >> $COMMENT_CONTENT
echo "COMMENT_CONTENT=$COMMENT_CONTENT" >> $GITHUB_ENV
echo "FILE1_OUTPUT << EOF" >> $GITHUB_OUTPUT
echo "$(cat CodeCoverage/SummaryGithub.md)" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
# run: |
# cat CodeCoverage/SummaryGithub.md >> $COMMENT_CONTENT
# echo "COMMENT_CONTENT=$COMMENT_CONTENT" >> $GITHUB_ENV

- name: Comment PR
uses: actions/github-script@v7
Expand All @@ -81,7 +85,7 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `${{ env.COMMENT_CONTENT }}`
body: `${{ steps.set_comment_content.outputs.FILE1_OUTPUT }}`
})
- name: Test with .NET 7.0.x
Expand Down

0 comments on commit ad208eb

Please sign in to comment.