Skip to content

Commit

Permalink
fix(actions): crowdin upload only per command in commit message or di…
Browse files Browse the repository at this point in the history
…spatch

Signed-off-by: Lala Sabathil <[email protected]>
  • Loading branch information
Lulalaby authored Aug 12, 2024
1 parent 92284d2 commit 3f7e380
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs-localization-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 3f7e380

Please sign in to comment.