-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
$GITHUB_WORKSPACE moves when using with.path on repo where action is executed #63
Comments
I faced this issue myself. My current strategy is to use a regular |
acitons/checkout@v2 will fix this behavior. here is the pr i'm expecting to merge probably early next week |
@ericsciple any chance you can add support for cloning the other repos with a SSH key for v2? |
@chrispat regarding priority for ssh? this sounds like an option we would be able to add later without breaking compat - e.g. 2.1 |
@danechitoaie i like the suggestion. Want to open a separate issue and i'll mark it as enhancement? |
@ericsciple Done. Created #72 |
Fixed in |
$GITHUB_WORKSPACE moves when using with.path on repo where action is executed (or when first fired?)
Repository is current at '/home/runner/work/repo/repo', move to '/home/runner/work/repo/site'.
This looks like it was intended by the author, but there's no (documented) way to avoid this.
In my use-case, I have 2 repo's: One with my site's files and one with ansible-playbooks for deployment:
The goal is to have both of these available in a docker action $GITHUB_WORKSPACE, so I have access to both repo's inside a docker action. I know there are other solutions for this, but this is the most elegant way.
-edit- I experienced this gives issues with .github/* files not being on their expected places, so I understand that $GITHUB_WORKSPACE has to move with its primary repo. I'd still like to know how I then would be able to achieve something like mentioned above.
The text was updated successfully, but these errors were encountered: