Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of your changes
Fixes #102
This action does not currently support code checked out to a directory other than the default
The following checkout would not work without this PR.
The above would generate the following error
Additionally if other repo's are checked out as a subdirectory this will commit that repo as sub-module. While this PR does not directly address the sub-module issue it allows its avoidance by supporting a directory other than
/github/workspace
By introducing the
git-sub-dir
arg and passing that arg to the container we can append the directory. Then everything works as normalI have:
How has this code been tested
I tested this by using the action
timothyclarke/tf-docs-gh-actions@d014534410793a9188ee6b3f1d465505e403db01
main...timothyclarke:tf-docs-gh-actions:checkout-dirNote that branch is slightly different from this PR as I needed to build the docker container and then reference my docker container.
With the above checkout command and the the following action
The test output was