Skip to content

Commit 0dc9ca7

Browse files
authored
Merge pull request #9263 from jrafanie/add_locale_po_to_json_gha
Add locale:po_to_json github action
2 parents df1d953 + 1840ab3 commit 0dc9ca7

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: "Locale PO to JSON"
2+
3+
on:
4+
workflow_dispatch:
5+
permissions:
6+
contents: read
7+
jobs:
8+
locale_po_to_json:
9+
if: github.repository_owner == 'ManageIQ'
10+
runs-on: ubuntu-latest
11+
services:
12+
postgres:
13+
image: manageiq/postgresql:13
14+
env:
15+
POSTGRESQL_USER: root
16+
POSTGRESQL_PASSWORD: smartvm
17+
POSTGRESQL_DATABASE: vmdb_i18n
18+
options: --health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 5
19+
ports:
20+
- 5432:5432
21+
env:
22+
PGHOST: localhost
23+
PGPASSWORD: smartvm
24+
RAILS_ENV: i18n
25+
SKIP_TEST_RESET: true
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Set up system
29+
run: bin/before_install
30+
- name: Set up Ruby
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
ruby-version: "3.1"
34+
bundler-cache: true
35+
timeout-minutes: 30
36+
- name: Prepare dependencies
37+
run: bin/setup
38+
- name: Install gettext for msgfmt --check support
39+
run: sudo apt-get install -y gettext
40+
- name: Run app:locale:po_to_json
41+
run: bundle exec rake app:locale:po_to_json
42+
- name: Create Pull Request
43+
uses: peter-evans/create-pull-request@v6
44+
with:
45+
add-paths: |
46+
app/javascript/oldjs/locale
47+
commit-message: Update UI json translation files
48+
branch: update_ui_json_translation_files
49+
author: ManageIQ Bot <[email protected]>
50+
committer: ManageIQ Bot <[email protected]>
51+
delete-branch: true
52+
labels: internationalization
53+
push-to-fork: ManageIQ/manageiq-ui-classic
54+
title: Update UI json translation files
55+
body: Update UI json translation files
56+
token: ${{ secrets.PR_TOKEN }}

0 commit comments

Comments
 (0)