Update Core Addons #166
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
| --- | |
| name: Update Core Addons | |
| on: | |
| schedule: | |
| # Run daily at 2:00 AM UTC | |
| - cron: "0 2 * * *" | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| update-core-addons: | |
| name: Update Core Addons | |
| environment: update-core-addons | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.2.0 | |
| - name: Update core addons and create PR | |
| env: | |
| GIT_AUTHOR_NAME: ${{ vars.GIT_AUTHOR_NAME || 'github-actions[bot]' }} | |
| GIT_COMMITTER_NAME: ${{ vars.GIT_COMMITTER_NAME || 'github-actions[bot]' }} | |
| # id of github-actions[bot] here: https://api.github.com/users/github-actions%5Bbot%5D | |
| GIT_AUTHOR_EMAIL: ${{ vars.GIT_AUTHOR_EMAIL || '41898282+github-actions[bot]@users.noreply.github.com' }} | |
| GIT_COMMITTER_EMAIL: ${{ vars.GIT_COMMITTER_EMAIL || '41898282+github-actions[bot]@users.noreply.github.com' }} | |
| ODOO_ENTERPRISE_GH_TOKEN: ${{ secrets.ODOO_ENTERPRISE_GH_TOKEN }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PYTHONUNBUFFERED: '1' | |
| run: | | |
| gh auth setup-git | |
| uv run ./mk_core_addons |