Add `working-directory` argument
So we can run this action in a different subdirectory in case of larger/mono repositories:
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
working-directory: backend <--
Interesting. How would this work? Would you have to re-use the same action for multiple directories?
Interesting question, I guess you would. My current changes: diff-fork just change the working directory so it can find the pyproject.toml stored in our backend folder. Let me know if you'd like that as a PR.
I missed this, feel free to open a PR. Is it working for you this way?
Could you add some documentation over this workflow? Thanks!
See https://github.community/t/best-practices-for-adding-reusable-workflows-to-actions/246224 for another use case for this feature (essentially arguing the case for working-directory being globally supported, but for now it would be handy to have in Commitizen).
Is this feature still desired?
Yeah, would be great to have it on board!