-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
39 lines (37 loc) · 1.35 KB
/
action.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
name: PolyglotRocks
description: "It automates Xcode project localization using the Polyglot tool"
inputs:
token:
description: "The API token provided by Polyglot."
required: true
bundle_id:
description: "The product bundle identifier of the Xcode project."
required: true
path:
description: "The path to the directory to search files to be localized (relative to the root of the repository)."
required: false
default: ""
api_url:
description: "The URL of the API endpoint to use for localization."
required: false
default: "https://api.polyglot.rocks"
files_to_translate:
description: "A comma-separated list of names of .strings files that are being translated (i.e Localizable.strings,InfoPlist.strings)"
required: false
default: ""
runs:
using: "composite"
steps:
- name: pull image
run: docker pull ghcr.io/clickcaramel/polyglot-rocks:0.5.1
shell: bash
- name: run polyglot
run: |
docker run --rm \
--env "TOKEN=${{ inputs.token }}" \
--env "PRODUCT_BUNDLE_IDENTIFIER=${{ inputs.bundle_id}}" \
--env "API_URL=${{ inputs.api_url }}" \
--env "FILES_TO_TRANSLATE=${{ inputs.files_to_translate }}" \
--volume "$(pwd)/${{ inputs.path }}:/home/polyglot/target" \
ghcr.io/clickcaramel/polyglot-rocks:0.5.1
shell: bash