From 71112a6852875257793c66e73462a200da8800cd Mon Sep 17 00:00:00 2001 From: Philip-Larsen-Donnelly <35666657+Philip-Larsen-Donnelly@users.noreply.github.com> Date: Wed, 8 Nov 2023 13:43:48 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 10447b25c..889a89bef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,10 @@ name: Transifex Workflow on: - push: - branches: - - main + schedule: + # * is a special character in YAML so you have to quote this string + - cron: '11 21 * * *' + workflow_dispatch: jobs: transifex: @@ -26,14 +27,14 @@ jobs: - name: Add Transifex remotes run: | - tx add remote --file-filter 'projects///' --minimum-perc 100 https://app.transifex.com/hisp-uio/docs-full-site/dashboard/ - tx add remote --file-filter 'projects///' --minimum-perc 100 https://app.transifex.com/hisp-uio/dhis2-single-page-docs/dashboard/ + ./tx add remote --file-filter 'projects///' --minimum-perc 100 https://app.transifex.com/hisp-uio/docs-full-site/dashboard/ + ./tx add remote --file-filter 'projects///' --minimum-perc 100 https://app.transifex.com/hisp-uio/dhis2-single-page-docs/dashboard/ shell: bash working-directory: ${{ github.workspace }} - name: Pull Transifex resources run: | - tx pull --all + ./tx pull --all shell: bash working-directory: ${{ github.workspace }}