Skip to content

Commit

Permalink
[CI] workflow to update pot file
Browse files Browse the repository at this point in the history
  • Loading branch information
jguenat committed Feb 6, 2025
1 parent 772473b commit 842a35d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/update_pot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: update_pot

on:
push:
branches:
- "16.0"

jobs:
update_pot:
runs-on: ubuntu-22.04
container: ${{ matrix.container }}
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
name: update pot file
makepot: "true"
services:
postgres:
image: postgres:12.0
env:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_DB: odoo
ports:
- 5432:5432
env:
OCA_GIT_USER_EMAIL: [email protected]
OCA_GIT_USER_NAME: sustainabilitybot
steps:
- name: Update .pot files
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'sustainability-suite' }}

0 comments on commit 842a35d

Please sign in to comment.