From d4825cbca73b70fa7d7b148e972571d4588d73ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Livr=C3=A4do=20Sandoval?= <104039397+livrasand@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:49:08 -0700 Subject: [PATCH] Create crowdin-translations-progress.yml --- .../crowdin-translations-progress.yml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/crowdin-translations-progress.yml diff --git a/.github/workflows/crowdin-translations-progress.yml b/.github/workflows/crowdin-translations-progress.yml new file mode 100644 index 0000000..aea5845 --- /dev/null +++ b/.github/workflows/crowdin-translations-progress.yml @@ -0,0 +1,32 @@ +name: Crowdin translations progress +on: + push: + branches: [ main ] + schedule: + - cron: "0 */12 * * *" + workflow_dispatch: + +jobs: + crowdin-translations-progress: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Generate Crowdin translations progress markdown + uses: benjaminjonard/crowdin-translations-progress-action@1.0.7 + with: + languages_per_row: 10 + minimum_completion_percent: 80 + file: README.md + env: + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} + CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + title: Update Crowdin translations progress + body: Update Crowdin translations progress by [Crowdin translations progress](https://github.com/benjaminjonard/crowdin-translations-progress-action) GitHub action + commit-message: Update Crowdin translations progress + branch: crowdin-translations-progress-action