-
Notifications
You must be signed in to change notification settings - Fork 898
60 lines (59 loc) · 1.82 KB
/
locale_update_all.yaml
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
50
51
52
53
54
55
56
57
58
59
60
name: "Locale Update All"
on:
schedule:
- cron: '0 0 1,15 * *'
workflow_dispatch:
permissions:
contents: read
jobs:
locale_update_all:
if: github.repository_owner == 'ManageIQ'
runs-on: ubuntu-latest
services:
postgres:
image: manageiq/postgresql:13
env:
POSTGRESQL_USER: root
POSTGRESQL_PASSWORD: smartvm
POSTGRESQL_DATABASE: vmdb_i18n
options: --health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
env:
PGHOST: localhost
PGPASSWORD: smartvm
RAILS_ENV: i18n
SKIP_TEST_RESET: true
SKIP_DATABASE_SETUP: true
steps:
- uses: actions/checkout@v4
- name: Set up system
run: bin/before_install
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
bundler-cache: true
timeout-minutes: 30
- name: Prepare dependencies
run: bin/setup
- name: Setup database
run: bundle exec rake evm:db:reset
- name: Run locale:update_all
run: bundle exec rake locale:update_all
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
add-paths: |
locale/manageiq.pot
locale/en/manageiq.po
commit-message: Update English Translations ${{github.event.repository.updated_at}}
branch: update_english_translations
author: ManageIQ Bot <[email protected]>
committer: ManageIQ Bot <[email protected]>
delete-branch: true
labels: internationalization
push-to-fork: miq-bot/manageiq
title: Update English Translations ${{github.event.repository.updated_at}}
body: Update the English Translations in the manageiq.po and manageiq.pot files.
token: ${{ secrets.PR_TOKEN }}