mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
chore(workflow): write JSON report in Crowdin contributors workflow
This commit is contained in:
@@ -5,6 +5,9 @@ on:
|
|||||||
- cron: '0 */12 * * *'
|
- cron: '0 */12 * * *'
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
env:
|
||||||
|
CONTRIBUTORS_JSON_FILENAME: crowdin-contributors.json
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
crowdin-contributors:
|
crowdin-contributors:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -14,7 +17,9 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Generate Crowdin Contributors table
|
- name: Generate Crowdin Contributors table
|
||||||
|
id: generate_table
|
||||||
uses: andrii-bodnar/action-crowdin-contributors@v1.0.1
|
uses: andrii-bodnar/action-crowdin-contributors@v1.0.1
|
||||||
|
continue-on-error: false
|
||||||
with:
|
with:
|
||||||
contributors_per_line: 8
|
contributors_per_line: 8
|
||||||
max_contributors: 32
|
max_contributors: 32
|
||||||
@@ -26,6 +31,16 @@ jobs:
|
|||||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||||
|
|
||||||
|
- name: Write JSON report
|
||||||
|
run: |
|
||||||
|
echo ${{ steps.generate_table.outputs.json_report }} > ${{ env.CONTRIBUTORS_JSON_FILENAME }}
|
||||||
|
|
||||||
|
- name: Upload JSON report
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: crowdin-contributors-json
|
||||||
|
path: ${{ env.CONTRIBUTORS_JSON_FILENAME }}
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user