PR checker: add style report link

This commit is contained in:
mDuo13
2021-05-27 18:25:09 -07:00
parent 032eee07fb
commit 8b4d03b16c

View File

@@ -44,6 +44,10 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
cat linkreport.txt
- name: Run Style Checker
continue-on-error: true
run: dactyl_style_checker -q > out/style_report.txt
- name: Deploy preview to gh-pages
uses: sauloxd/review-apps@v1.3.3
with:
@@ -56,13 +60,9 @@ jobs:
id: slug
run: echo "::set-output name=sha6::$(echo ${{ github.event.pull_request.head.sha }} | cut -c1-6)"
- name: Run Style Checker
continue-on-error: true
run: dactyl_style_checker -q
- name: Summarize Output
uses: unsplash/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: "${{ env.LINKREPORT }}\n\nPreview: https://${{ github.repository_owner }}.github.io/${{ github.event.pull_request.base.repo.name }}/pr-preview/${{ github.head_ref }}/${{steps.slug.outputs.sha6}}"
msg: "${{ env.LINKREPORT }}\n\nPreview: https://${{ github.repository_owner }}.github.io/${{ github.event.pull_request.base.repo.name }}/pr-preview/${{ github.head_ref }}/${{steps.slug.outputs.sha6}}\n\n[Style Report](https://${{ github.repository_owner }}.github.io/${{ github.event.pull_request.base.repo.name }}/pr-preview/${{ github.head_ref }}/${{steps.slug.outputs.sha6}}/style_report.txt)"