Retrying checkout submodules (#27666)
diff --git a/.github/actions/checkout-submodules/action.yaml b/.github/actions/checkout-submodules/action.yaml
index d5d4709..429fb1a 100644
--- a/.github/actions/checkout-submodules/action.yaml
+++ b/.github/actions/checkout-submodules/action.yaml
@@ -11,6 +11,9 @@
runs:
using: "composite"
steps:
- - name: Checkout submodules
- shell: bash
- run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform ${{ inputs.platform }} ${{ inputs.extra-parameters }}
+ - uses: Wandalen/wretry.action@v1.3.0
+ name: Checkout submodules
+ with:
+ command: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform ${{ inputs.platform }} ${{ inputs.extra-parameters }}
+ attempt_limit: 3
+ attempt_delay: 2000