Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NorseGaud committed Apr 3, 2024
1 parent 2d50cd6 commit 3633868
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trigger-test-runs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

0 comments on commit 3633868

Please sign in to comment.