Add workdir and repository as input vars#79
Conversation
Signed-off-by: Michael Gerlach <michael.gerlach@commercetools.com>
Signed-off-by: Michael Gerlach <michael.gerlach@commercetools.com>
|
Thanks for the PR! GitHub Actions currently provide the ability to set working directory for a job at https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun Can this method along with #69 satisfy your use-case? The reason being that way, you have the flexibility to run other actions too without the need to change code of other actions you or others might want to run in the future. |
|
@wei In my case this fix is exactly what I need. I have blocks of code that clone multiple repositories, generate code into each one, etc. After a series of tests/heuristics and other things happen.. I want to push pull requests to several repositories. To do so, I in turn rely on multiple repositories being cloned. This would be a game changer for me 🙏 |
|
Actually @n3ph I'm not convinced this works. In my test setup - using your fork it appears that the option isn't honoured. In my example I:
What happens is that even though I'm in the correct directory (I receive the text More interesting, it doesn't error (HTTP 422 though), so it returns green. |
|
I recommend merging in the latest master which will provide more verbose logging for ease of troubleshooting. |
That only works with the Here is what happens if you try to provide the
|
|
Never saw #69 (comment) 🙈 Sorry for the noise... |
For cross-repository workflows we required to checkout repositories to sub-directories in order to commit and push changes to a different repository / branch. In order to be able to create a PR, I've added these two inputs.