From 36338680bf9456787bf46c9e6b66fe84a0b33fad Mon Sep 17 00:00:00 2001 From: Nathan Pierce Date: Wed, 3 Apr 2024 16:15:26 -0400 Subject: [PATCH] quick fix --- trigger-test-runs.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/trigger-test-runs.bash b/trigger-test-runs.bash index a88e214..ad58fce 100755 --- a/trigger-test-runs.bash +++ b/trigger-test-runs.bash @@ -8,8 +8,9 @@ REPO="${3}" [[ -n "$OWNER" ]] || (echo "OWNER as ARG2 is required" && exit 1) [[ -n "$REPO" ]] || (echo "REPO as ARG3 is required" && exit 1) +TRIGGER_RUN_COUNT="${4:-10}" -for i in {1..100}; do +for i in {1..${TRIGGER_RUN_COUNT}}; do WORKFLOW_FILES=$(ls ./.github/workflows/*.yml) for FILE in $WORKFLOW_FILES; do WORKFLOW_ID=$(basename $FILE) @@ -19,6 +20,6 @@ for i in {1..100}; do -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/${OWNER}/${REPO}/actions/workflows/${WORKFLOW_ID}/dispatches \ -d '{"ref":"main"}' - sleep 2 + sleep 1 done done