forked from ivan-hc/AM
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.16 KB
/
language-updater.yml
File metadata and controls
49 lines (41 loc) · 1.16 KB
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
name: "Language Manager"
on:
push:
branches: main
paths:
- APP-MANAGER
- modules/*.am
- translations/po-files/*.po
- .github/workflows/language-updater.yml
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
sync-files:
name: "Sync locale files"
runs-on: ubuntu-latest
steps:
- name: "Checkout source repository"
uses: actions/checkout@v6
- name: "Cache dependencies"
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: gettext
version: 1.0
- name: "Run Language Manager"
run: |
./LANGUAGE-MANAGER
- name: "Push to Source"
run: |
git config --global user.name "ivan-hc"
git config --global user.email "noreply@github.com"
git add translations
if git diff-index --quiet HEAD; then
echo "No changes to commit." >> $GITHUB_STEP_SUMMARY
else
git commit -m "Sync locale files"
git push && echo "Sync locale files" >> $GITHUB_STEP_SUMMARY
fi