我正在尝试创建一个 CI github 操作,但在访问存储库子模块中的文件时遇到问题:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'directory_in_sub_module/requirements.txt'
现在我的问题是如何通过 github actions 访问位于子模块中的文件?
最佳答案
我只需要通过运行来 checkout 所有子模块:
- name: checkout all the submodules
uses: actions/checkout@v2
with:
submodules: recursive
关于git - 如何在 GitHub Actions 中使用子模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71184834/