mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
Test multiline link report v2
This commit is contained in:
15
.github/workflows/link-checker-pr.yml
vendored
15
.github/workflows/link-checker-pr.yml
vendored
@@ -33,16 +33,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Dactyl Link Checker
|
- name: Run Dactyl Link Checker
|
||||||
run: |
|
run: |
|
||||||
dactyl_link_checker -q > linkreport.txt
|
dactyl_link_checker -o -q > linkreport.txt
|
||||||
|
|
||||||
- name: Set Link Report
|
- name: Set Link Report
|
||||||
id: checker
|
id: checker
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
sed -i '1,/---------------------------------------/d' linkreport.txt
|
sed -i '1,/---------------------------------------/d' linkreport.txt
|
||||||
|
echo 'LINKREPORT<<EOF' >> $GITHUB_ENV
|
||||||
|
cat linkreport.txt >> $GITHUB_ENV
|
||||||
|
echo 'EOF' >> $GITHUB_ENV
|
||||||
|
|
||||||
# old way of setting the link report to an env var
|
# potential alternative approach:
|
||||||
# echo "::set-output name=linkreport::$(cat linkreport.txt)"
|
# REPORT="$(cat linkreport.txt)"
|
||||||
|
# REPORT="${REPORT//'%'/'%25'}"
|
||||||
|
# REPORT="${REPORT//$'\n'/'%0A'}"
|
||||||
|
# REPORT="${REPORT//$'\r'/'%0D'}"
|
||||||
|
# echo "::set-output name=linkreport::$REPORT"
|
||||||
|
|
||||||
- name: Comment Broken Links
|
- name: Comment Broken Links
|
||||||
uses: unsplash/comment-on-pr@master
|
uses: unsplash/comment-on-pr@master
|
||||||
@@ -51,5 +58,5 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
# msg: ${{steps.checker.outputs.linkreport}}
|
# msg: ${{steps.checker.outputs.linkreport}}
|
||||||
msg: $(cat linkreport.txt)
|
msg: ${{ $LINKREPORT }}
|
||||||
check_for_duplicate_msg: false
|
check_for_duplicate_msg: false
|
||||||
|
|||||||
Reference in New Issue
Block a user