Skip to content
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

Add working-directory input #21

Merged
merged 3 commits into from Jul 2, 2020
Merged

Add working-directory input #21

merged 3 commits into from Jul 2, 2020

Conversation

dorny
Copy link
Owner

@dorny dorny commented Jul 2, 2020

If repository is checked out into subfolder of $GITHUB_WORKSPACE, our change detection via git diff-index will fail. Checkout to subfolder is not common scenario but there are valid use cases for that. One example is checkout out multiple repositories.

This PR adds working-directory input option.
If this input is set, action will as the first thing change the working directory.
Reading of filters yaml and all git commands are then executed within configured directory.

resolves #18

@dorny dorny merged commit 486f1bd into develop Jul 2, 2020
@dorny dorny deleted the working-directory branch July 2, 2020 20:56
dorny added a commit that referenced this pull request Aug 4, 2020
@dorny dorny mentioned this pull request Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support repositories cloned into subfolder
1 participant