From ed39a2600c1d35be77cc70709fc45d195adf7118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 17 Oct 2023 09:01:32 -0700 Subject: [PATCH] CI: Use flatpak gettext action --- .github/workflows/merge.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 68f68f7..cc4d58a 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -50,3 +50,32 @@ jobs: repository: appcenter flat-manager-url: https://flatpak-api.elementary.io token: ${{ secrets.FLAT_MANAGER_TOKEN }} + + gettext: + name: Gettext + runs-on: ubuntu-latest + container: + image: ghcr.io/elementary/flatpak-platform/runtime:7.2-x86_64 + options: --privileged + + steps: + - name: Install git, python3-git and jq + run: | + apt-get update + apt-get install git jq python3-git -y + + - name: Clone repository + uses: actions/checkout@v4 + with: + token: ${{ secrets.GIT_USER_TOKEN }} + + - name: Configure Git + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + - name: Update Translation Files + uses: elementary/actions/gettext-flatpak@main + with: + manifest-path: 'io.elementary.iconbrowser.yml' + env: + GIT_USER_NAME: "elementaryBot" + GIT_USER_EMAIL: "builds@elementary.io"