Upload translation sources to Crowdin translate.keyman.com #185
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload translation sources to Crowdin translate.keyman.com | |
on: | |
schedule: | |
# At 06:00 every day. https://crontab.cronhub.io/ | |
- cron: '0 6 * * *' | |
jobs: | |
upload-sources-to-crowdin: | |
if: github.repository == 'keymanapp/keyman' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: crowdin action | |
uses: crowdin/[email protected] | |
with: | |
upload_sources: true | |
# This is the name of the top-level directory that Crowdin will use for files. | |
# Note that this is not a "branch" in the git sense, but more like a top-level directory in your Crowdin project. | |
# This branch does NOT need to be manually created. It will be created automatically by the action. | |
crowdin_branch_name: master | |
config: 'crowdin.yml' | |
# TODO if we want action to auto create PRs | |
#GITHUB_TOKEN: $ | |
# See https://translate.keyman.com/project/keyman/tools/api | |
project_id: ${{ secrets.CROWDIN_PROJECT_ID }} | |
# A personal access token | |
# See https://crowdin.com/settings#api-key to generate a token | |
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |