mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-04 11:55:50 +00:00
Use token and report on failures in link checker action
This commit is contained in:
8
.github/workflows/link-checker-pr.yml
vendored
8
.github/workflows/link-checker-pr.yml
vendored
@@ -32,14 +32,20 @@ jobs:
|
||||
tool/build_all_langs.sh --vars dactyl_vars.json
|
||||
|
||||
- name: Run Dactyl Link Checker
|
||||
id: checker
|
||||
run: |
|
||||
dactyl_link_checker -q > linkreport.txt
|
||||
|
||||
- name: Set Link Report
|
||||
id: checker
|
||||
if: always()
|
||||
run: |
|
||||
sed -i '1,/---------------------------------------/d' linkreport.txt
|
||||
echo "::set-output name=linkreport::$(cat linkreport.txt)"
|
||||
|
||||
- name: Comment Broken Links
|
||||
uses: unsplash/comment-on-pr@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
if: always()
|
||||
with:
|
||||
msg: ${{steps.checker.outputs.linkreport}}
|
||||
|
||||
Reference in New Issue
Block a user