Skip to content

Commit

Permalink
CLDR-17918 workflow for building cldr-json
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 committed Oct 23, 2024
1 parent d384788 commit 1fd5dbe
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
commit-message:
include: scope
prefix: "CLDR-00000 deps"
62 changes: 62 additions & 0 deletions .github/workflows/build-json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
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

0 comments on commit 1fd5dbe

Please sign in to comment.