-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
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 }} |
Submodule aiida-core
updated
720 files