Skip to content

Commit

Permalink
Translation update info
Browse files Browse the repository at this point in the history
  • Loading branch information
eltos committed Sep 8, 2024
1 parent e3d90bf commit dc58e5b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/crowdin_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ jobs:
- name: Collect statistics
run: |
echo 'DIFF<<EOF' >> $GITHUB_ENV
git diff -U9999999 | awk '{if(/<data/){i=1;a=d=0}if(/<\/data/){i=0;M+=a&&d;A+=a&&!d;D+=!a&&d}if(i){if(/^+/){a++}if(/^-/){d++}}}END{if(A){print"+ "A" translations added"}if(M){print"* "M" translations updated"}if(D){print"- "D" translations deleted"}}' >> $GITHUB_ENV
git diff --stat | sed 's:.*/::g' >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
echo 'INFO<<EOF' >> $GITHUB_ENV
crowdin status -v $ARGS >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
Expand All @@ -117,13 +121,20 @@ jobs:
translation
body: |
Translation updates from [Crowdin project](https://crowdin.com/project/PasteIntoFile)
```diff
${{ env.DIFF }}
```
See [recent activity](https://crowdin.com/project/PasteIntoFile/activity-stream)
<details><summary>Translation info</summary>
```
${{ env.INFO }}
```
</details>
----
- To re-sync and update this PR include /sync in a comment.
Expand Down

0 comments on commit dc58e5b

Please sign in to comment.