diff --git a/.github/workflows/localize.yml b/.github/workflows/localize.yml index e9407c08..c587dcc9 100644 --- a/.github/workflows/localize.yml +++ b/.github/workflows/localize.yml @@ -3,11 +3,14 @@ name: localize on: push: branches: [nightly] + paths-ignore: + - 'locale/**' workflow_dispatch: jobs: localize: name: Update Localization + if: ${{ github.event.pull_request.merged }} runs-on: ubuntu-latest steps: - name: Checkout @@ -20,7 +23,7 @@ jobs: - name: Set up Python 3.9 Dependencies run: | - cd ./locale + cd ./scripts python -m pip install --upgrade pip setuptools python -m pip install -r requirements.txt @@ -32,7 +35,7 @@ jobs: - name: Update Strings run: | - python ./locale/_locale.py --extract --init --update + python ./scripts/_locale.py --extract --init --update - name: GitHub Commit & Push # push changes back into nightly uses: actions-js/push@v1.2