Skip to content

Commit

Permalink
Set shell
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPGreen committed Nov 18, 2024
1 parent 54ce06a commit d21876c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/test-external-links/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,23 @@ runs:
cache: 'npm'

- name: Install Lynx
shell: ${{ env.shell }}
run: |
sudo apt-get update
sudo apt-get install -y lynx
- name: Build documentation
shell: ${{ env.shell }}
run: |
npm i
npm run-script build-local
- run: |
- shell: ${{ env.shell }}
run: |
echo "temp_file=$(mktemp)" >> $GITHUB_ENV
- name: Extract links
shell: ${{ env.shell }}
run: |
# Extract all unique URLs
# Faster than potentially checking the same link on multiple pages
Expand All @@ -36,6 +40,7 @@ runs:
done
- name: Check links
shell: ${{ env.shell }}
run: |
distinct_urls=$(sort -u "${temp_file}")
Expand Down

0 comments on commit d21876c

Please sign in to comment.