Skip to content

Commit

Permalink
Add action to update POT files
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Dec 20, 2023
1 parent 7fae76c commit 38857c9
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/ci-update-pot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Update POT File

on:
push:
paths:
# should be a file since it is a submodule
- aiida-core


jobs:
update-pot:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.10

- name: Install aiida-core
run: |
pip install -e .[docs,tests,rest,atomic_tools]
working-directory: aiida-core

- name: Generate and update POT files
run: |
make -C docs/ gettext
working-directory: aiida-core

- name: Copy POT files to locale_sources
run: |
cp aiida-core/docs/_build/locale/*.pot locale_sources/
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update POT file
title: Update POT file
body: |
This pull request updates the POT file from the aiida-core submodule.
branch: update-pot-file-${{ github.sha }}
2 changes: 1 addition & 1 deletion aiida-core
Submodule aiida-core updated 720 files

0 comments on commit 38857c9

Please sign in to comment.