How to add a private git repository as a submodule in another git repository?
locally when i do git submodule update it works fine, but in the github action runner, it fails with error stating url not found at the checkout step.
Here's how i have configured my workflow file.
jobs:
update_submodules:
runs-on: ubuntu-latest
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
# - name: Clone submodule
# run: git submodule update --init --recursive
- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
It fails in the second step.