Fix action to handle http links as well

This commit is contained in:
allegroai 2021-12-22 18:31:50 +02:00
parent 2feffddfae
commit bf3cc6ef0a

View File

@ -28,4 +28,4 @@ jobs:
# Runs a single command using the runners shell # Runs a single command using the runners shell
- name: Run a one-line script - name: Run a one-line script
run: | 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'