Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use submodules in GitHub Actions [duplicate]

I am trying to create a CI github action, and I have problems accessing a file that is in a submodule of the repository:

ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'directory_in_sub_module/requirements.txt'

Now my question is how do I access files located in submodules through github actions?

like image 773
Houssem Chouia Avatar asked Oct 22 '25 15:10

Houssem Chouia


1 Answers

I just needed to checkout all the submodules by just running:

- name: checkout all the submodules
  uses: actions/checkout@v2
  with:
    submodules: recursive
like image 132
Houssem Chouia Avatar answered Oct 25 '25 13:10

Houssem Chouia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!