From 8f85132d486300eb602991ea012591130166e9e5 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 8 Jul 2021 15:04:38 +0200 Subject: [PATCH] Download translations on release (#9530) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Joakim Sørensen --- .github/workflows/release.yaml | 7 ++++++ .github/workflows/translations.yaml | 36 ----------------------------- 2 files changed, 7 insertions(+), 36 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 15b09a3933..c286580c2f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,6 +31,13 @@ jobs: node-version: ${{ env.NODE_VERSION }} cache: yarn + - name: Install dependencies + run: yarn install + + - name: Download Translations + run: ./script/translations_download + env: + LOKALISE_TOKEN: ${{ secrets.LOKALISE_TOKEN }} - name: Build and release package run: | python3 -m pip install twine diff --git a/.github/workflows/translations.yaml b/.github/workflows/translations.yaml index 78aa044fef..060fd8a32f 100644 --- a/.github/workflows/translations.yaml +++ b/.github/workflows/translations.yaml @@ -1,8 +1,6 @@ name: Translations on: - schedule: - - cron: "30 0 * * *" push: branches: - dev @@ -25,37 +23,3 @@ jobs: export LOKALISE_TOKEN="${{ secrets.LOKALISE_TOKEN }}" ./script/translations_upload_base - - download: - name: Download - needs: upload - if: github.event_name == 'schedule' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@v2 - - - name: Set up Node ${{ env.NODE_VERSION }} - uses: actions/setup-node@v2 - with: - node-version: ${{ env.NODE_VERSION }} - cache: yarn - - - name: Download Translations - run: | - export LOKALISE_TOKEN="${{ secrets.LOKALISE_TOKEN }}" - - yarn install - ./script/translations_download - - - name: Initialize git - uses: home-assistant/actions/helpers/git-init@master - with: - name: GitHub Action - email: github-action@users.noreply.github.com - - - name: Update translation - run: | - git add translations - git commit -am "Translation update" - git push