Skip to content

Commit

Permalink
minors
Browse files Browse the repository at this point in the history
  • Loading branch information
VaiTon authored Apr 4, 2022
1 parent 69d2f25 commit 70a1225
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,28 @@
name: Link Check Deploy
name: Link rot
on:
push:
branches: '*'
- push

jobs:
build:
check:
name: Link rot check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Get file names

- name: Get files that need to be checked
id: get_files
run: |
html_files=$(find html/donate -type f -name '*.html' -exec basename {} \;)
html_files=$(echo "$html_files" | xargs | sed -e 's/ /,/g')
file_list="CONTRIBUTING.md,README.md,${html_files[@]}"
echo "::set-output name=all_files::$file_list"
echo $file_list
# - name: Get modified file names
# id: files
# uses: jitterbit/get-changed-files@v1
# with:
# format: 'csv'
# - run: |
# mapfile -d ',' -t added_modified_files < <(printf '%s,' '${{ steps.files.outputs.added_modified }}')
# for added_modified_file in "${added_modified_files[@]}"; do
# echo "Do something with this ${added_modified_file}."
# done
- name: Check URLs
uses: paramt/url-checker@master
with:
files: "${{ steps.get_files.outputs.all_files }}"
#files: "${{steps.files.outputs.added_modified }}"
#blacklist: "${{ steps.get_files.outputs.all_files }},01-intro.md,about.md,doi2bib.org"

- uses: LouisBrunner/[email protected]
with:
Expand Down

0 comments on commit 70a1225

Please sign in to comment.