-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (42 loc) · 1.39 KB
/
localization.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
45
46
47
48
name: Localization Update
on:
pull_request:
branches:
- master
types: [closed]
jobs:
update-localizations:
defaults:
run:
working-directory: ./packages/deriv_localizations
if: github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'crowdin'
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Setup Flutter
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: "stable"
flutter-version: "3.10.2"
cache: true
- name: Setup Config
run: |
git config --global user.name 'mobile-apps-deriv'
git config --global user.email '[email protected]'
- name: Make the script files executable
run: chmod +x l10n.sh
- name: Run the scripts
run: |
./l10n.sh
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
- name: Create Pull Request.
uses: peter-evans/create-pull-request@76c6f5c20e2111bfee3cd30fae52a25e410f5efc
with:
token: ${{ secrets.PAT }}
title: "refactor(deriv_localizations): Crowdin Localization Generated"
branch: create-pull-request/localisation
base: master