diff --git a/.github/workflows/gettext.yml b/.github/workflows/gettext.yml new file mode 100644 index 0000000..6eca062 --- /dev/null +++ b/.github/workflows/gettext.yml @@ -0,0 +1,38 @@ +--- + +name: Merge + +on: + push: + branches: + - main + +jobs: + gettext: + name: Gettext + runs-on: ubuntu-latest + container: + image: ghcr.io/elementary/flatpak-platform/runtime:8.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.maps.yml' + env: + GIT_USER_NAME: "elementaryBot" + GIT_USER_EMAIL: "builds@elementary.io"