mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
Link checker: clean up edits
This commit is contained in:
28
.github/workflows/link-checker-pr.yml
vendored
28
.github/workflows/link-checker-pr.yml
vendored
@@ -35,8 +35,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
dactyl_link_checker -o -q > linkreport.txt
|
dactyl_link_checker -o -q > linkreport.txt
|
||||||
|
|
||||||
- name: Set Link Report
|
- name: Assemble Link Report
|
||||||
id: checker
|
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
sed -i '1,/---------------------------------------/d' linkreport.txt
|
sed -i '1,/---------------------------------------/d' linkreport.txt
|
||||||
@@ -44,19 +43,12 @@ jobs:
|
|||||||
cat linkreport.txt >> $GITHUB_ENV
|
cat linkreport.txt >> $GITHUB_ENV
|
||||||
echo 'EOF' >> $GITHUB_ENV
|
echo 'EOF' >> $GITHUB_ENV
|
||||||
|
|
||||||
# potential alternative approach:
|
# # Disabled because the ripple GitHub org doesn't allow the GITHUB_TOKEN to do this
|
||||||
# REPORT="$(cat linkreport.txt)"
|
# - name: Comment Broken Links
|
||||||
# REPORT="${REPORT//'%'/'%25'}"
|
# uses: unsplash/comment-on-pr@master
|
||||||
# REPORT="${REPORT//$'\n'/'%0A'}"
|
# env:
|
||||||
# REPORT="${REPORT//$'\r'/'%0D'}"
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# echo "::set-output name=linkreport::$REPORT"
|
# if: always()
|
||||||
|
# with:
|
||||||
- name: Comment Broken Links
|
# msg: ${{ env.LINKREPORT }}
|
||||||
uses: unsplash/comment-on-pr@master
|
# check_for_duplicate_msg: false
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
# msg: ${{steps.checker.outputs.linkreport}}
|
|
||||||
msg: ${{ env.LINKREPORT }}
|
|
||||||
check_for_duplicate_msg: false
|
|
||||||
|
|||||||
Reference in New Issue
Block a user