mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
ci: retry transient yarn install failures
Co-authored-by: a110605 <5744158+a110605@users.noreply.github.com>
This commit is contained in:
co-authored by
a110605
parent
8e93404849
commit
1f37a23845
@@ -12,4 +12,15 @@ runs:
|
|||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
shell: bash
|
shell: bash
|
||||||
run: yarn install
|
run: |
|
||||||
|
for attempt in 1 2 3; do
|
||||||
|
if yarn install --frozen-lockfile; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$attempt" -lt 3 ]; then
|
||||||
|
sleep 10
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user