-
Notifications
You must be signed in to change notification settings - Fork 48
44 lines (38 loc) · 1.3 KB
/
release-project-sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This workflow runs release_project_sync.py on demand
name: Sync reviews and tags into release project
on:
workflow_dispatch: # by request
inputs:
release:
description: 'Release name: e.g. zebrawood'
required: true
type: string
language:
description: 'Language code e.g. "ar" or "zh_CN". Leave empty to sync all languages.'
required: false
default: ''
type: string
resource:
description: 'Resource slug e.g. "AudioXBlock" or "frontend-app-learning". Leave empty to sync all languages'
required: false
default: ''
type: string
jobs:
release-project-sync:
runs-on: ubuntu-latest
steps:
# Clones the openedx-translations repo
- name: clone openedx/openedx-translations
uses: actions/checkout@v3
# Sets up Python
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
# Run the script
- name: Sync reviews for release project
env:
TRANSIFEX_API_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }}
run: |
make translations_scripts_requirements
python ./scripts/release_project_sync.py --resource="${{ inputs.resource }}" --language="${{ inputs.language }}" "${{ inputs.release }}"