-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yaml
30 lines (30 loc) · 908 Bytes
/
action.yaml
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
name: Transifex CLI action
description: Invoke the Transifex CLI as part of a Github action
branding:
icon: globe
color: blue
inputs:
version:
description: The version of the Transifex CLI to use
required: true
default: 'latest'
args:
description: What arguments to pass to the CLI
required: true
default: 'push'
token:
description: Transifex API token to use
required: true
runs:
using: 'composite'
steps:
- name: Create temporary directory to store the CLI
run: mkdir -p /tmp/tx
shell: bash
- name: Download the CLI
run: curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash -s -- ${{ inputs.version }}
working-directory: /tmp/tx
shell: bash
- name: Invoke the CLI with the provided token and arguments
run: /tmp/tx/tx --token ${{ inputs.token }} ${{ inputs.args }}
shell: bash