-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom working directory #7
Comments
Hi there @renyuneyun ! Thanks for opening up an issue with us! Let me know if I understood you correctly. You need to specify a path where the Is the example below what you would like to set up?
If so, at the moment, we don't have a way to set the working-directory. But we can look up to implement this in the short term if needed. If you need more help from us, feel free to contact us through Discord!! |
@renyuneyun Is this still an issue? You could also try something like |
Closing the issue due to inactivity. Feel free to reopen the issue if needed. |
Just bumping. I too would like this feature, especially for a monorepo setup where I typically sparse checkout only the required service! Either that or just allowing for sparse checkouts might be nice 😎 |
maybe something like this? |
@thenick775 and @renyuneyun mind giving it a go when you get a sec? I put up the PR, but i've not had a chance to test it. |
Hi @thenick775 and @renyuneyun! We have this PR that solves your request. We would love to see if you have any other inputs for us before this makes it to a release. Thanks again for your involvement! |
I'll try to get some eyes on this in the next few days, unless someone can beat me to it! 😎 |
@LeoDiazL checked this out and the options look good, but is there a way we can make the default working directory the directory that has been checked out using the sparse checkout? Really what I'm trying to avoid is having to specify both of these in addition to sparse checkout commands if that's possible:
I think its been brought up before, so not sure if we can support, I usually get around this by setting a default
Ex. The sparse checkout itself is working 😎 I don't think this necessarily solves the initial ask, but definitely satisfies part of mine. |
@thenick775 sorry for the late response. About the comment, would be nice, but there's a catch.
Adding that option might not apply to everybody. If you are reusing and would like to reduce the amount of variables to adjust, you could define an environment variable that helps define the three variables at the same time. (Docs about variables here ) Or you could even wrap our action inside one of you own creation, doing this merge automatically. Let me know your thoughts, and if I can merge/close this. (once that's done a new release will follow). Leo |
That is a very fair point! This definitely saves me enough with allowing for integrated sparse checkouts, I'm happy to close! |
Hi. Is there a way to set a custom working directory when using this workflow?
This SO answer points out a way, but it does not work well with the workflow, because the directory does not exist before workflow run.
The text was updated successfully, but these errors were encountered: