forked from the-turing-way/the-turing-way
-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (44 loc) · 1.67 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
49
50
51
name: Crowdin Contributors Action
on:
schedule:
- cron: '0 0 * * 1' # 'https://crontab.guru/#0_0_*_*_1'
# To manually run this workflow
workflow_dispatch:
jobs:
crowdin-contributors:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
# This environment contains secrets specific to crowdin and only workflows
# listing this environment can use them
environment: crowdin
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate Crowdin Contributors table
uses: andrii-bodnar/[email protected]
with:
contributors_per_line: 5
max_contributors: 10000
image_size: 100
min_words_contributed: 1
include_languages: true
placeholder_start: <!-- CROWDIN-CONTRIBUTORS-LIST:START -->
placeholder_end: <!-- CROWDIN-CONTRIBUTORS-LIST:END -->
crowdin_project_link: https://turingway.crowdin.com/turing-way
files: |
README.md
book/website/afterword/contributors-record.md
env:
CROWDIN_PROJECT_ID: 1
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_ORGANIZATION: turingway
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
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
committer: Crowdin Bot <[email protected]>
branch: crowdin-contributors/patch