From 417c6e548df5a87d6ac2a75c853487c9297481cf Mon Sep 17 00:00:00 2001 From: Darren Kelly Date: Tue, 5 Mar 2024 12:13:34 +0000 Subject: [PATCH] test: throttled requests --- .github/workflows/on-push.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-push.yaml b/.github/workflows/on-push.yaml index 702ed07..0168496 100644 --- a/.github/workflows/on-push.yaml +++ b/.github/workflows/on-push.yaml @@ -12,7 +12,12 @@ jobs: index: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ] runs-on: ubuntu-latest steps: + - name: Calculate Sleep Duration + id: calculate-sleep-duration + run: | + echo "Sleep Duration: $((3 * ${{ matrix.index }}))" + - name: Run Sleep and Test uses: ./.github/actions/sleep-and-test.yaml with: - sleep_duration: ${{ format('{0}', 3 * matrix.index) }} + sleep_duration: ${{ steps.calculate-sleep-duration.outputs.stdout }}