|
| 1 | +# Copyright (c) 2022-2023 Jonah Aragon <jonah@triplebit.net> |
| 2 | + |
| 3 | +# Permission is hereby granted, free of charge, to any person obtaining a copy |
| 4 | +# of this software and associated documentation files (the "Software"), to |
| 5 | +# deal in the Software without restriction, including without limitation the |
| 6 | +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
| 7 | +# sell copies of the Software, and to permit persons to whom the Software is |
| 8 | +# furnished to do so, subject to the following conditions: |
| 9 | + |
| 10 | +# The above copyright notice and this permission notice shall be included in |
| 11 | +# all copies or substantial portions of the Software. |
| 12 | + |
| 13 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 14 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 | +# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE |
| 16 | +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 17 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 18 | +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS |
| 19 | +# IN THE SOFTWARE. |
| 20 | + |
| 21 | +name: 💬 Crowdin Download |
| 22 | + |
| 23 | +on: |
| 24 | + workflow_dispatch: |
| 25 | + schedule: |
| 26 | + - cron: '0 4 * * *' |
| 27 | + |
| 28 | +permissions: write-all |
| 29 | + |
| 30 | +jobs: |
| 31 | + synchronize-with-crowdin: |
| 32 | + runs-on: ubuntu-latest |
| 33 | + |
| 34 | + steps: |
| 35 | + |
| 36 | + - name: Checkout |
| 37 | + uses: actions/checkout@v3 |
| 38 | + |
| 39 | + - name: crowdin action |
| 40 | + uses: crowdin/github-action@v1.7.1 |
| 41 | + with: |
| 42 | + upload_sources: false |
| 43 | + upload_translations: false |
| 44 | + download_sources: false |
| 45 | + download_translations: true |
| 46 | + push_translations: true |
| 47 | + create_pull_request: false |
| 48 | + localization_branch_name: main |
| 49 | + download_translations_args: '--all' |
| 50 | + config: crowdin.yml |
| 51 | + env: |
| 52 | + GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} |
| 53 | + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} |
| 54 | + CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
0 commit comments