Skip to content

Commit 2cea1c0

Browse files
committed
Use Java
1 parent f453ae0 commit 2cea1c0

File tree

11,563 files changed

+35
-2145360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

11,563 files changed

+35
-2145360
lines changed

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

__tests__/main.test.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

action.yml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,39 @@ inputs:
4545
description: 'Download translations for given customerIds'
4646
required: false
4747
default: ''
48+
args:
49+
description: 'Additional arguments'
50+
required: false
51+
default: ''
4852
runs:
49-
using: 'node16'
50-
main: 'dist/index.js'
53+
using: 'composite'
54+
steps:
55+
- name: "Print inputs"
56+
run: |
57+
echo "Test SimpleLocalize"
58+
echo "command: ${{ inputs.command }}"
59+
echo "cli-version: ${{ inputs.cli-version }}"
60+
if [ -z "${{ inputs.api-key }}" ]; then
61+
echo "api-key: [empty]"
62+
else
63+
echo "api-key: [hidden]"
64+
fi
65+
echo "download-path: ${{ inputs.download-path }}"
66+
echo "download-format: ${{ inputs.download-format }}"
67+
echo "upload-path: ${{ inputs.upload-path }}"
68+
echo "upload-format: ${{ inputs.upload-format }}"
69+
echo "args: ${{ inputs.args }}"
70+
shell: bash
71+
- name: "Setup Java"
72+
uses: actions/setup-java@v3
73+
with:
74+
distribution: 'temurin'
75+
java-version: '20'
76+
- name: "Download SimpleLocalize CLI"
77+
run: "https://get.simplelocalize.io/binaries/${{ inputs.cli-version }}/simplelocalize-cli-${{ inputs.cli-version }}.jar"
78+
shell: bash
79+
- name: "Execute SimpleLocalize CLI Command"
80+
run: |
81+
java -jar simplelocalize-cli-${{ inputs.cli-version }}.jar ${{ inputs.command }} ${{ inputs.args }}
82+
shell: bash
83+

0 commit comments

Comments
 (0)