From 667b6043b16c42d660012840e1891480f83c6011 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Thu, 21 Dec 2023 00:02:44 +0100 Subject: [PATCH] Add action to update POT files --- .github/workflows/ci-update-pot.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci-update-pot.yml diff --git a/.github/workflows/ci-update-pot.yml b/.github/workflows/ci-update-pot.yml new file mode 100644 index 000000000..91b214bb2 --- /dev/null +++ b/.github/workflows/ci-update-pot.yml @@ -0,0 +1,34 @@ +name: Update POT File + +on: + push: + paths: + - aiida-core + + +jobs: + update-pot: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Update POT file + run: | + # Add your commands here to update the POT file + # For example, you can use the following command to update the POT file from the aiida-core submodule: + # cd aiida-core + # git submodule update --init --recursive + # make update-pot + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + 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.