From 5497d59a2b438f0e4df9847beb284efb9f1edbb7 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Mon, 12 Aug 2024 18:49:22 +0200 Subject: [PATCH] fix(actions): crowdin upload only per command in commit message or dispatch Signed-off-by: Lala Sabathil --- .github/workflows/docs-localization-upload.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-localization-upload.yml b/.github/workflows/docs-localization-upload.yml index c332d85267..f459e13940 100644 --- a/.github/workflows/docs-localization-upload.yml +++ b/.github/workflows/docs-localization-upload.yml @@ -4,12 +4,14 @@ on: push: branches: - master + workflow_dispatch: jobs: localizse: permissions: write-all name: "Localisize Docs" runs-on: ubuntu-latest + if: contains(github.event.head_commit.message, '!crowdin upload') || github.event_name == 'workflow_dispatch' steps: - uses: actions/checkout@v4 - name: "Install Python" @@ -30,8 +32,7 @@ jobs: working-directory: ./docs - name: "Build locales" run: - sphinx-intl update -p ./build/locales -l de -l ja -l de -l ja -l fr -l it -l - hi -l ko -l pt -l es -l zh + sphinx-intl update -p ./build/locales -l de -l ja -l de -l ja -l fr -l it -l hi -l ko -l pt -l es -l zh working-directory: ./docs - name: "Crowdin" uses: crowdin/github-action@v2