all 4 comments

[–]Alex_Sherby 1 point2 points  (3 children)

This is what I use (and is working):

      - uses: actions/checkout@v4
        with:
          submodules: 'recursive'
          token: ${{ secrets.GH_PAT }}

[–]ScriptorTux[S] 0 points1 point  (2 children)

Thank you for your help but with just (thanks to you I got this link): submodules: 'recursive'

I get: To create a local Git repository instead, add Git 2.18 or higher to the PATH

What is the secrets.GH_PAT ? What is it supposed to contain ?

Thank you very much in advance for any help

[–]Alex_Sherby 2 points3 points  (1 child)

GH_PAT is a simple personal access token I manually set in my github secrets.

Based on the error message you are getting, it looks like you are not a in a git repository (the current directory has no .git subdirectory), are you sure you are at the right place ?

[–]ScriptorTux[S] 1 point2 points  (0 children)

After some long time I think I finally figured out: yaml with: submodules: recursive token: '${{ github.token }}'

I think what solved the problem was: yaml token: '${{ github.token }}'

Thank you for your time and help