|
| 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