My build depends on git submodules, how can I pull them
Are there any solutions ? Can I continue to use github actions alternatively ?
Solution:Jump to solution
@Alaanor as of right now, there is no submodule support that I’m aware of. Aside from actions, you could always use the CLI to deploy with
railway up
which will bundle your current working directory and push it for build9 Replies
Project ID:
N/A
N/A
Solution
@Alaanor as of right now, there is no submodule support that I’m aware of. Aside from actions, you could always use the CLI to deploy with
railway up
which will bundle your current working directory and push it for buildoh this upload the current working directory, sound perfect to use it from github action then
I wasn't sure what the command did exactly from the docs
Thanks !
No problem.
It doesn't seems to be uploading the files :(
I setup the whole thing and made a debug using
pwd
and some ls -lah
to see whatever the files were in or not, on github side they existed within the current folder before the upload (in some nested directory, but it was part of .
), on railway, they just don't exist as if it was a simple git clone
the only log I get on github side from the railway cli is this
so it seems like it was uploading .. but was it really ?
what did it upload
Found the solution ! was trying to upload the stuff so that I could build and deploy on railway side (but with the missing files). Instead I build completely until the end on github side and just railway up the final build. The railway build command is something like
echo "do nothing"
lol, but at least I can skip and get my stuff working don't know why the first approach did not work but whateverFYI you can also use gh actions to pull the submodules, add the files and commit to a new branch, and then deploy that branch from railway. Probably better to figure out
railway up
but I didn't realize that would work from an action when I was working it out https://github.com/heathhenley/ChEBot/blob/main/.github/workflows/git_submodule_workaround.yamlGitHub
ChEBot/.github/workflows/git_submodule_workaround.yaml at main · he...
Contribute to heathhenley/ChEBot development by creating an account on GitHub.