Link checker: clean up edits

This commit is contained in:
mDuo13
2021-05-20 16:58:48 -07:00
parent 09640d28ef
commit 335fe4e5d0

View File

@@ -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