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