-
Notifications
You must be signed in to change notification settings - Fork 102
38 lines (34 loc) · 1.15 KB
/
update_translation_files.yml
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
# We keep this workflow without using uyuni-docs-helper as it interacts directly with the repository
name: Update translation files
on:
push:
branches:
- 'master'
- 'manager-4.3'
- 'manager-4.3-MU-4.3.[0-9][0-9]?' # MU branches
- 'manager-5.0'
- 'manager-5.0-MU-5.0.[0-9][0-9]?'
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: 'Install po4a'
run: |
wget https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Utils/xUbuntu_20.04/Release.key
sudo apt-key add Release.key
rm -f Release.key
sudo add-apt-repository -y -u 'deb https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Utils/xUbuntu_20.04/ ./'
sudo apt-get install -y po4a
- name: 'Update gettext files'
run: |
make pot
- name: 'Commit changes, if any'
uses: EndBug/add-and-commit@v9.1.4
with:
author_name: Galaxy CI
author_email: galaxy-ci@suse.de
message: 'Automatic commit: update translation files'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}