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.
This PR includes 2 new workflows:
i18n-auto-branch
which automatically runs the key-copying script on pushes to the main/master branch and opens a branch with the updated files if there were any changesi18n-manual-branch
which can be manually triggeredThe branch workflows are identical other than the trigger condition to allow for disabling the automatic workflow without removing the ability to run the manual workflow.
These two workflows will need write access to be able to create the branch and PR. These also require defining the USER_EMAIL and USER_NAME secrets for the git initialization. These values don't necessarily need to be secrets, but felt better to do that instead of just including a default value in the action.
These workflows make use of the https://github.com/audiobookshelf/audiobookshelf-i18n-updater GitHub action. The script this action runs ensures a newline at the end of each i18n file so the last line stops showing up as a change when viewing the diff when the number of lines changes in an i18n file.