Skip to content

Commit bf141ec

Browse files
authored
Add a retry for clones (#509)
1 parent bf9a252 commit bf141ec

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/third_party.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Install uv
5757
run: curl -LsSf https://astral.sh/uv/install.sh | sh
5858
- name: Checkout pydantic
59-
run: git clone https://github.com/pydantic/pydantic.git
59+
run: git clone --depth=1 https://github.com/pydantic/pydantic.git || git clone --depth=1 https://github.com/pydantic/pydantic.git
6060
- name: Checkout typing_extensions
6161
uses: actions/checkout@v4
6262
with:
@@ -96,7 +96,7 @@ jobs:
9696
- name: Install uv
9797
run: curl -LsSf https://astral.sh/uv/install.sh | sh
9898
- name: Checkout typing_inspect
99-
run: git clone https://github.com/ilevkivskyi/typing_inspect.git
99+
run: git clone --depth=1 https://github.com/ilevkivskyi/typing_inspect.git || git clone --depth=1 https://github.com/ilevkivskyi/typing_inspect.git
100100
- name: Checkout typing_extensions
101101
uses: actions/checkout@v4
102102
with:
@@ -142,7 +142,7 @@ jobs:
142142
- name: Install uv
143143
run: curl -LsSf https://astral.sh/uv/install.sh | sh
144144
- name: Check out pyanalyze
145-
run: git clone https://github.com/quora/pyanalyze.git
145+
run: git clone --depth=1 https://github.com/quora/pyanalyze.git || git clone --depth=1 https://github.com/quora/pyanalyze.git
146146
- name: Checkout typing_extensions
147147
uses: actions/checkout@v4
148148
with:
@@ -188,7 +188,7 @@ jobs:
188188
- name: Install uv
189189
run: curl -LsSf https://astral.sh/uv/install.sh | sh
190190
- name: Check out typeguard
191-
run: git clone https://github.com/agronholm/typeguard.git
191+
run: git clone --depth=1 https://github.com/agronholm/typeguard.git || git clone --depth=1 https://github.com/agronholm/typeguard.git
192192
- name: Checkout typing_extensions
193193
uses: actions/checkout@v4
194194
with:
@@ -234,7 +234,7 @@ jobs:
234234
- name: Install uv
235235
run: curl -LsSf https://astral.sh/uv/install.sh | sh
236236
- name: Check out typed-argument-parser
237-
run: git clone https://github.com/swansonk14/typed-argument-parser.git
237+
run: git clone --depth=1 https://github.com/swansonk14/typed-argument-parser.git || git clone --depth=1 https://github.com/swansonk14/typed-argument-parser.git
238238
- name: Checkout typing_extensions
239239
uses: actions/checkout@v4
240240
with:
@@ -287,7 +287,7 @@ jobs:
287287
- name: Install uv
288288
run: curl -LsSf https://astral.sh/uv/install.sh | sh
289289
- name: Checkout mypy for stubtest and mypyc tests
290-
run: git clone https://github.com/python/mypy.git
290+
run: git clone --depth=1 https://github.com/python/mypy.git || git clone --depth=1 https://github.com/python/mypy.git
291291
- name: Checkout typing_extensions
292292
uses: actions/checkout@v4
293293
with:
@@ -332,7 +332,7 @@ jobs:
332332
with:
333333
python-version: ${{ matrix.python-version }}
334334
- name: Checkout cattrs
335-
run: git clone https://github.com/python-attrs/cattrs.git
335+
run: git clone --depth=1 https://github.com/python-attrs/cattrs.git || git clone --depth=1 https://github.com/python-attrs/cattrs.git
336336
- name: Checkout typing_extensions
337337
uses: actions/checkout@v4
338338
with:

0 commit comments

Comments
 (0)