diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index f1b9b8e3..ee056c22 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -64,7 +64,7 @@ jobs: TX_TOKEN: ${{ secrets.TX_TOKEN }} - name: Pull translations from Transifex - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'opengisch/signalo' && github.actor != 'dependabot[bot]' }} + if: contains(fromJSON('["push", "workflow_dispatch", "schedule"]'), github.event_name) || ${{ github.event_name == 'pull_request' && github.repository == 'opengisch/signalo' }} run: | ./tx pull --translations --all --minimum-perc 10 ./tx status @@ -72,7 +72,7 @@ jobs: TX_TOKEN: ${{ secrets.TX_TOKEN }} - name: Translate Mkdocs config - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'opengisch/signalo' && github.actor != 'dependabot[bot]' }} + if: contains(fromJSON('["push", "workflow_dispatch", "schedule"]'), github.event_name) || ${{ github.event_name == 'pull_request' && github.repository == 'opengisch/signalo' }} run: | ./scripts/mkdocs_tx.py -s fr update_config ./scripts/mkdocs_tx_commit.sh @@ -97,5 +97,5 @@ jobs: if-no-files-found: error - name: Deploy to GitHub Pages - if: ${{ github.event_name != 'pull_request' }} + if: contains(fromJSON('["push", "workflow_dispatch", "schedule"]'), github.event_name) run: mkdocs gh-deploy --force