Skip to content

Commit 84cb890

Browse files
committed
Throttle builds
1 parent fcbd068 commit 84cb890

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/build-native-action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
RELENV_DATA: ${{ github.workspace }}
3838

3939
steps:
40+
- name: "Throttle Builds"
41+
shell: bash
42+
run: |
43+
t=$(python3 -c 'import random, sys; sys.stdout.write(str(random.randint(0, 600)))'); echo "Sleeping $t seconds"; sleep "$t"
44+
4045
- uses: actions/checkout@v3
4146

4247
- name: Set up Python 3.10
@@ -96,6 +101,11 @@ jobs:
96101
RELENV_DATA: ${{ github.workspace }}
97102

98103
steps:
104+
- name: "Throttle Builds"
105+
shell: bash
106+
run: |
107+
t=$(python3 -c 'import random, sys; sys.stdout.write(str(random.randint(0, 600)))'); echo "Sleeping $t seconds"; sleep "$t"
108+
99109
- uses: actions/checkout@v3
100110

101111
- name: Patch /usr/local
@@ -214,6 +224,11 @@ jobs:
214224
RELENV_DATA: ${{ github.workspace }}
215225

216226
steps:
227+
- name: "Throttle Builds"
228+
shell: bash
229+
run: |
230+
t=$(python3 -c 'import random, sys; sys.stdout.write(str(random.randint(0, 600)))'); echo "Sleeping $t seconds"; sleep "$t"
231+
217232
- uses: actions/checkout@v3
218233

219234
- name: Set up Python 3.10

0 commit comments

Comments
 (0)