From 43a967c1cb2d700302156790c9a3ff97a20d05a1 Mon Sep 17 00:00:00 2001 From: Brian Mesick Date: Fri, 13 Oct 2023 15:28:55 -0400 Subject: [PATCH] build: Update workflows for new translations --- ...anslations.yaml => pull-translations.yaml} | 6 ++--- .github/workflows/push-translations.yaml | 27 ------------------- 2 files changed, 2 insertions(+), 31 deletions(-) rename .github/workflows/{compile-translations.yaml => pull-translations.yaml} (88%) delete mode 100644 .github/workflows/push-translations.yaml diff --git a/.github/workflows/compile-translations.yaml b/.github/workflows/pull-translations.yaml similarity index 88% rename from .github/workflows/compile-translations.yaml rename to .github/workflows/pull-translations.yaml index 9855543a0..de060e4f9 100644 --- a/.github/workflows/compile-translations.yaml +++ b/.github/workflows/pull-translations.yaml @@ -1,4 +1,4 @@ -name: Compile Translations +name: Pull Translations on: workflow_dispatch: schedule: @@ -6,8 +6,6 @@ on: env: TUTOR_ROOT: ./.ci/ - TRANSIFEX_TOKEN: ${{ secrets.EDUNEXT_ASPECTS_ASSET_TRANSIFEX_TOKEN }} - TRANSIFEX_SECRET: ${{ secrets.EDUNEXT_ASPECTS_ASSET_TRANSIFEX_SECRET }} jobs: compile_translations: @@ -24,7 +22,7 @@ jobs: - name: Install requirements run: make requirements - name: Mark for translation - run: make compile_translations + run: make pull_translations - name: Get current date id: date run: echo "::set-output name=date::$(date +'%Y-%m-%d')" diff --git a/.github/workflows/push-translations.yaml b/.github/workflows/push-translations.yaml deleted file mode 100644 index aa187c8cf..000000000 --- a/.github/workflows/push-translations.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: Push Translations -on: - push: - branches: - - main - -env: - TUTOR_ROOT: ./.ci/ - TRANSIFEX_TOKEN: ${{ secrets.EDUNEXT_ASPECTS_ASSET_TRANSIFEX_TOKEN }} - TRANSIFEX_SECRET: ${{ secrets.EDUNEXT_ASPECTS_ASSET_TRANSIFEX_SECRET }} - -jobs: - push_translations: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: setup python - uses: actions/setup-python@v4 - with: - python-version: 3.9 - - name: Install aspects - run: pip install . - - name: Install requirements - run: make requirements - - name: Mark for translation - run: make push_translations