Locale Update All #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.1" | |
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@v7 | |
with: | |
add-paths: | | |
locale/manageiq.pot | |
locale/en/manageiq.po | |
commit-message: Update English Translations | |
branch: update_english_translations | |
author: ManageIQ Bot <[email protected]> | |
committer: ManageIQ Bot <[email protected]> | |
delete-branch: true | |
assignees: jrafanie | |
labels: internationalization | |
push-to-fork: miq-bot/manageiq | |
title: Update English Translations | |
body: Update the English Translations in the manageiq.po and manageiq.pot files. | |
token: ${{ secrets.PR_TOKEN }} |