-
Notifications
You must be signed in to change notification settings - Fork 64
62 lines (59 loc) · 1.92 KB
/
build-json.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
49
50
51
52
53
54
55
56
57
58
59
60
61
name: build-json
on:
workflow_dispatch:
inputs:
git-ref:
description: Git Ref to build (Optional)
required: false
version:
description: Package Version (e.g. 46.0.0 or 46.0.0-BETA2 )
required: true
cldr-repo:
description: CLDR (tool) repo to use
required: true
default: 'unicode-org/cldr'
cldr-ref:
description: 'CLDR (tool) ref/tag/branch to use'
required: true
default: 'main'
data-repo:
description: Data (staging) repo to use
required: true
default: 'unicode-org/cldr-staging'
data-ref:
description: 'Data (staging) ref/tag/branch to use'
required: true
default: 'main'
data-dir:
description: 'Path in Data repo'
required: true
default: 'production/'
jobs:
build:
name: Build cldr-json
runs-on: ubuntu-latest
steps:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
- name: Clone json
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.git-ref }}
path: cldr-json
- name: Clone CLDR
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.cldr-ref }}
lfs: false
repository: ${{ github.event.inputs.cldr-repo }}
path: cldr
- name: Clone Data
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.data-ref }}
repository: ${{ github.event.inputs.data-repo }}
sparse-checkout: ${{ github.event.inputs.data-dir }}
path: cldr-staging