From 1329e485f6b0719aca6c76d822f2dbd8141161d7 Mon Sep 17 00:00:00 2001 From: tkb-github Date: Thu, 26 Sep 2024 11:54:14 +0800 Subject: [PATCH] Use GNU Parallel --- .github/workflows/redos-detector.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/redos-detector.yml b/.github/workflows/redos-detector.yml index f036ce7..17394e0 100644 --- a/.github/workflows/redos-detector.yml +++ b/.github/workflows/redos-detector.yml @@ -8,6 +8,7 @@ on: push: paths: - 'staging' + - '**.yml' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -33,7 +34,4 @@ jobs: # Runs a set of commands using the runners shell - name: Run redos-detector run: | - while read -r regex; do - echo "$regex" - npx redos-detector check "$regex" --caseInsensitive --resultsLimit 0 - done < staging + cat staging | parallel -j+0 npx redos-detector check "$regex" --caseInsensitive --resultsLimit 0