From d21876c484ce2fcdac7372df90558746771b4f8c Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 18 Nov 2024 21:29:24 +0000 Subject: [PATCH] Set shell --- .github/actions/test-external-links/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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}")