brandedoutcast / publish-nuget

📦 GitHub action to automate publishing NuGet packages when project version changes
https://github.com/marketplace/actions/publish-nuget
MIT License
197 stars 101 forks source link

[BUG] Repos are not cloned with submodules #53

Open MattFiler opened 3 years ago

MattFiler commented 3 years ago

Describe the bug When repos are cloned to be built they are not cloned with submodules which results in a build failure for some projects.

Failed Action Log URL (Required) https://github.com/OpenCAGE/CathodeLib/runs/1439021389

To Reproduce Steps to reproduce the behavior:

  1. Run the action on a repo with a submodule

Expected Behavior Build without errors.

Gakk commented 3 years ago

I believe you have to specify submodules when running actions/checkout:

steps:
  - uses: actions/checkout@v2
    with:
      submodules: true

From documentation:

Whether to checkout submodules: true to checkout submodules or recursive to recursively checkout submodules.