Skip to content

Commit f2a8080

Browse files
authored
Merge pull request #1 from simplelocalize/add-api-key-argument
Add optional API Key argument
2 parents 1f55521 + e20949f commit f2a8080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ inputs:
1212
cli-version:
1313
description: 'Choose a CLI version. Versions: https://github.com/simplelocalize/simplelocalize-cli/releases'
1414
required: true
15-
default: '2.2.0'
15+
default: '2.5.0'
1616
api-key:
1717
description: 'Project API Key'
1818
required: false
@@ -39,6 +39,6 @@ runs:
3939
run: "curl -o simplelocalize.jar https://get.simplelocalize.io/binaries/${{ inputs.cli-version }}/simplelocalize-cli-${{ inputs.cli-version }}.jar"
4040
shell: bash
4141
- name: "Execute SimpleLocalize CLI Command"
42-
run: "java -jar simplelocalize.jar ${{ inputs.command }} ${{ inputs.args }}"
42+
run: "java -jar simplelocalize.jar ${{ inputs.command }} ${{ inputs.apiKey && '--apiKey' }} ${{ inputs.apiKey }} ${{ inputs.args }}"
4343
shell: bash
4444

0 commit comments

Comments
 (0)