-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
33 lines (28 loc) · 1.02 KB
/
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
31
name: "Setup Google App Version CLI Tool"
description: "Setup the Google App Version CLI in a workflow job"
branding:
color: blue
icon: terminal
inputs:
version:
description: "The version of the CLI to download"
default: "latest"
runs:
using: composite
steps:
- name: download latest release
if: inputs.version == 'latest'
shell: bash
run: curl -LO https://github.com/inspire-labs-tms-tech/google-play-app-version-code-cli/releases/latest/download/google-app-version.deb
- name: download specific release
if: inputs.version != 'latest'
shell: bash
run: curl -LO "https://github.com/inspire-labs-tms-tech/google-play-app-version-code-cli/releases/download/$VERSION/google-app-version.deb"
env:
VERSION: ${{ inputs.version }}
- name: install release
shell: bash
run: sudo apt-get install ./google-app-version.deb
- name: add release to path
shell: bash
run: sudo ln -s /usr/local/bin/google-app-version/bin/google-app-version /usr/bin