From c7f668f15afeef391acdede6fa339ff884616824 Mon Sep 17 00:00:00 2001 From: Arnaud Poncet-Montanges Date: Fri, 25 Oct 2024 14:56:51 +0200 Subject: [PATCH] Add scheduled task for project translation and package for PR altering QGIS project Add scheduled task for project translation and creating a downloadable package for PR altering QGIS project --- .github/workflows/project-translation.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/project-translation.yml b/.github/workflows/project-translation.yml index 3f3c5eb27..de632836c 100644 --- a/.github/workflows/project-translation.yml +++ b/.github/workflows/project-translation.yml @@ -11,6 +11,14 @@ on: paths: - project/** - '.github/workflows/project-translation.yml' + pull_request: + branches: + - main + paths: + - project/** + - '.github/workflows/project-translation.yml' + schedule: + - cron: "30 04 * * *" workflow_dispatch: @@ -42,6 +50,7 @@ jobs: run: docker compose run qgis sh -c 'xvfb-run /usr/src/project/scripts/project-translation-create-source.py /usr/src/project/teksi_wastewater.qgs' - name: Push to TX + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} working-directory: project run: ./tx push --source