diff --git a/.github/actions/test-external-links/action.yml b/.github/actions/test-external-links/action.yml index 11b336bf8..d76fdbad2 100644 --- a/.github/actions/test-external-links/action.yml +++ b/.github/actions/test-external-links/action.yml @@ -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 @@ -36,6 +40,7 @@ runs: done - name: Check links + shell: ${{ env.shell }} run: | distinct_urls=$(sort -u "${temp_file}")