forked from musescore/MuseScore
-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (32 loc) · 1.17 KB
/
ci_tx_push.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
name: Push translatable strings to Transifex
on:
workflow_dispatch:
inputs:
retyped_branch_name:
description: "Retype branch name to be sure you have selected the correct branch"
required: true
jobs:
tx_push:
runs-on: ubuntu-latest
steps:
- name: Check preconditions
env:
GITHUB_REF: ${{ github.ref }}
RETYPED_BRANCH_NAME: ${{ github.event.inputs.retyped_branch_name }}
run: |
if [ "${GITHUB_REF}" != "refs/heads/${RETYPED_BRANCH_NAME}" ]; then
echo "::error::Retyped branch name does not match actual branch name. Please make sure you have selected the correct branch."
exit 1
fi
if [ -z "${{ secrets.TRANSIFEX_API_TOKEN }}" ]; then
echo "::error::TRANSIFEX_API_TOKEN is not set"
exit 1
fi
- name: Clone repository
uses: actions/checkout@v4
- name: Setup environment
run: |
bash ./buildscripts/ci/translation/tx_install.sh -t ${{ secrets.TRANSIFEX_API_TOKEN }} -s linux
- name: Push strings to Transifex
run: |
bash ./buildscripts/ci/translation/tx_push.sh