From bf3cc6ef0a07af36d30bca59b4b15d85f0d685f0 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 22 Dec 2021 18:31:50 +0200 Subject: [PATCH] Fix action to handle http links as well --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 47c562ae..db943e0a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,4 +28,4 @@ jobs: # Runs a single command using the runners shell - name: Run a one-line script run: | - grep -r -Eoh "(https://github.com/[a-zA-Z0-9./?=_%:-]*)" $GITHUB_WORKSPACE | sort -u | xargs -n 1 -P 10 sh -c 'curl --output /dev/null --silent --head --fail $0 || curl --output /dev/null --silent --head --fail --write-out "%{url_effective}: %{http_code}\n" $0 || exit 255' + grep -r -Eoh "(https?://github.com/[a-zA-Z0-9./?=_%:-]*)" $GITHUB_WORKSPACE | sort -u | xargs -n 1 -P 10 sh -c 'curl --output /dev/null --silent --head --fail $0 || curl --output /dev/null --silent --head --fail --write-out "%{url_effective}: %{http_code}\n" $0 || exit 255'