github-action: Action attempts to push to wrong branch
Describe the bug A clear and concise description of what the bug is.
The action appears to be attempting to commit changes to ${{ github.ref_name }} instead of the specified localization_branch_name.
To Reproduce Steps to reproduce the behavior:
- Set up workflow, with actions/checkout@v4 and the ref checked out being “main”. The crowdin action also requires a value set for
localization_branch_name. - Create a new branch
- It fails because of
pathspec ${{ github.ref_name }} didn't match any files known to git
crowdin@github-action@v2.1.1 No-crowdin.yml setup.
Expected behavior A clear and concise description of what you expected to happen.
It force-pushes downloaded localizations to the branch specified in localization_branch_name
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
The cron schedule method still works as expected.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (9 by maintainers)
@andrii-bodnar I came across the main problem, and the recommendation here helped me. I think this should be better documented in the example