Hi 馃憢
Great Action! Thanks :)
I integrated it to my workflow and it works great. I am trying to comment into the PR chat the link to the codecoverage website. Maybe this could be a nice addition for this too.
Code except
- name: Send coverage
id: send-coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
goveralls -coverprofile=covprofile -service=github > code_coverage_link
coverage="$(cat code_coverage_link)"
echo "::set-output name=coverage::$coverage"
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
with:
token: ${{secrets.GOVERNANCE_BOT_TOKEN}}
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'carbonautMustache'
body-includes: Code coverage link
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v2
with:
token: ${{secrets.GOVERNANCE_BOT_TOKEN}}
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
Code coverage link: ${{ steps.send-coverage.outputs.coverage }}
edit-mode: replace
I am unable to retrieve the link and only get this output: 'Code coverage link: Job #2250989753.1' no idea how to get the website link.. I looked into the API defenition but could find a way to http request it.
The link is printed to the action execution but I am unable to store it in a variable..
Any ideas? Thanks!
I am happy to document this in this repo's readme if that's interesting
Cheers Leo
Hi 馃憢
Great Action! Thanks :)
I integrated it to my workflow and it works great. I am trying to comment into the PR chat the link to the codecoverage website. Maybe this could be a nice addition for this too.
Code except
I am unable to retrieve the link and only get this output: 'Code coverage link: Job #2250989753.1' no idea how to get the website link.. I looked into the API defenition but could find a way to http request it.
The link is printed to the action execution but I am unable to store it in a variable..
Any ideas? Thanks!
I am happy to document this in this repo's readme if that's interesting
Cheers Leo