checkout icon indicating copy to clipboard operation
checkout copied to clipboard

An error will be reported when updating the submodule

Open swgu98 opened this issue 9 months ago • 3 comments

When calling the checkout action, an error will be reported. This is the task link: https://github.com/PaddlePaddle/Paddle/actions/runs/14889303999/job/41817146967?pr=72610.

Occasionally, it doesn't happen every time, but sometimes it succeeds after rerun.

This is my code

  • name: Clone paddle uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.base.ref }} submodules: 'recursive' fetch-depth: 1000

swgu98 avatar May 08 '25 08:05 swgu98

Brother te dejo mi número de WhatsApp+56968612573 de verdad agradecería mucho que me hablaras y me expliques un poquito esto

kikeavril16 avatar May 11 '25 02:05 kikeavril16

I'm getting this error on v2 or higher (v1 works):

The repository will be downloaded using the GitHub REST API
To create a local Git repository instead, add Git 2.18 or higher to the PATH
Error: Input 'submodules' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git 2.18 or higher to the PATH.

With:

  - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          submodules: recursive

anr2me avatar Jun 06 '25 11:06 anr2me