Use multiple processes in action

This commit is contained in:
allegroai 2021-12-22 18:29:23 +02:00
parent f2cd4834ec
commit 2feffddfae

View File

@ -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 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'