mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 04:05:49 +00:00
PR checker: add style report link
This commit is contained in:
10
.github/workflows/link-checker-pr.yml
vendored
10
.github/workflows/link-checker-pr.yml
vendored
@@ -44,6 +44,10 @@ jobs:
|
|||||||
echo 'EOF' >> $GITHUB_ENV
|
echo 'EOF' >> $GITHUB_ENV
|
||||||
cat linkreport.txt
|
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
|
- name: Deploy preview to gh-pages
|
||||||
uses: sauloxd/review-apps@v1.3.3
|
uses: sauloxd/review-apps@v1.3.3
|
||||||
with:
|
with:
|
||||||
@@ -56,13 +60,9 @@ jobs:
|
|||||||
id: slug
|
id: slug
|
||||||
run: echo "::set-output name=sha6::$(echo ${{ github.event.pull_request.head.sha }} | cut -c1-6)"
|
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
|
- name: Summarize Output
|
||||||
uses: unsplash/comment-on-pr@master
|
uses: unsplash/comment-on-pr@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
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)"
|
||||||
|
|||||||
Reference in New Issue
Block a user