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 }}