mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
chore(workflow): write formatted JSON report for Crowdin contributors
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
||||
workflow_dispatch: {}
|
||||
|
||||
env:
|
||||
CONTRIBUTORS_JSON_FILENAME: crowdin-contributors.json
|
||||
CONTRIBUTORS_JSON_FILENAME: crowdin-contributors
|
||||
|
||||
jobs:
|
||||
crowdin-contributors:
|
||||
@@ -34,10 +34,16 @@ jobs:
|
||||
- name: Write JSON report
|
||||
uses: "DamianReeves/write-file-action@master"
|
||||
with:
|
||||
path: ${{ env.CONTRIBUTORS_JSON_FILENAME }}
|
||||
path: ${{ env.CONTRIBUTORS_JSON_FILENAME }}_staging.json
|
||||
write-mode: overwrite
|
||||
contents: ${{ steps.generate_table.outputs.json_report }}
|
||||
|
||||
- name: Pretty-print JSON report
|
||||
run: |
|
||||
sudo apt-get install jq
|
||||
cat ${{ env.CONTRIBUTORS_JSON_FILENAME }}_staging.json | jq '.' > ${{ env.CONTRIBUTORS_JSON_FILENAME }}.json
|
||||
rm ${{ env.CONTRIBUTORS_JSON_FILENAME }}_staging.json
|
||||
|
||||
- name: Upload JSON report
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user