chore(workflow): write formatted JSON report for Crowdin contributors

This commit is contained in:
Akash Yadav
2023-12-26 12:56:43 +05:30
parent d5b03f61d2
commit 1004b2b567
+8 -2
View File
@@ -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: