Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recursive checkout action not work as exptected. #239

Closed
liudonghua123 opened this issue May 11, 2020 · 0 comments · Fixed by #258
Closed

recursive checkout action not work as exptected. #239

liudonghua123 opened this issue May 11, 2020 · 0 comments · Fixed by #258

Comments

@liudonghua123
Copy link

I tried to use

    - uses: actions/checkout@v2
      with:
        submodules: 'recursive'

or

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

But during the latter build process, it always failed with something error message like

Error: Command failed: git describe --tags
fatal: No names found, cannot describe anything.

see https://github.com/liudonghua123/dpo-voyager/runs/662309034?check_suite_focus=true.

And in the end I need to rewrite the checkout steps like the following to make the build process success.

    - uses: actions/checkout@v2
      with:
        submodules: 'recursive'
    - run: git fetch --prune --unshallow

ref: https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything

Is there any options to make git work as --prune --unshallow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant