Skip to content

Commit ac2c367

Browse files
committed
add retry for failed clone from gittee
1 parent 8028490 commit ac2c367

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/bench-test.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ jobs:
2525
]
2626
steps:
2727
- name: clone repo
28-
run: git clone https://gitee.com/openharmony/${{ matrix.project }}.git
28+
uses: nick-fields/retry@v3
29+
with:
30+
timeout_seconds: 15
31+
max_attempts: 3
32+
retry_on: error
33+
command: git clone https://gitee.com/openharmony/${{ matrix.project }}.git
2934

3035
- name: install dylint
3136
run: cargo install cargo-dylint dylint-link

0 commit comments

Comments
 (0)