-
-
Notifications
You must be signed in to change notification settings - Fork 27
48 lines (42 loc) · 1.5 KB
/
crowdin-contributors.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Crowdin Contributors Action
on:
# When you push to the `main` branch
push:
branches: [ main ]
# And optionally, once every 12 hours
schedule:
- cron: '0 */12 * * *' # https://crontab.guru/#0_*/12_*_*_*
# To manually run this workflow
workflow_dispatch:
jobs:
crowdin-contributors:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate Crowdin Contributors data
uses: andrii-bodnar/[email protected]
id: contributors
with:
contributors_per_line: 6
max_contributors: 32
image_size: 64
min_words_contributed: 1
include_languages: false
crowdin_project_link: https://crowdin.com/project/rootlessjamesdsp
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Create translator info json
uses: DamianReeves/[email protected]
with:
path: app/src/main/res/raw/translators.json
write-mode: overwrite
contents: ${{ steps.contributors.outputs.json_report }}
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
title: Update Crowdin Contributors table
body: By [action-crowdin-contributors](https://github.com/andrii-bodnar/action-crowdin-contributors) GitHub action
commit-message: Update Crowdin Contributors table
branch: crowdin-contributors/patch