Add step to initialize test database in workflow #4
This file contains hidden or 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
| # ⚠️ DO NOT EDIT THIS FILE, IT IS GENERATED BY COPIER ⚠️ | |
| # Changes here will be lost on a future update. | |
| # See: https://github.com/ingadhoc/addons-repo-template | |
| name: Update .pot files | |
| on: | |
| push: | |
| branches: "*.0" | |
| jobs: | |
| update-pot: | |
| runs-on: ubuntu-22.04 | |
| container: ghcr.io/oca/oca-ci/py3.10-odoo19.0:latest | |
| services: | |
| postgres: | |
| image: postgres:13 | |
| env: | |
| POSTGRES_USER: odoo | |
| POSTGRES_PASSWORD: odoo | |
| POSTGRES_DB: odoo | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Install addons and dependencies | |
| run: oca_install_addons | |
| - name: Initialize test db | |
| run: oca_init_test_database | |
| - name: Update .pot files | |
| run: | | |
| oca_export_and_push_pot \ | |
| https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }} | |
| if: ${{ github.repository_owner == 'ingadhoc' }} | |