File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ branding:
58
58
runs :
59
59
using : " composite"
60
60
steps :
61
+ - name : " Install the gh cli tool if not installed"
62
+ shell : bash
63
+ run : ./deps.sh
64
+
61
65
- name : " Error missing auth conf"
62
66
if : inputs.gh_app_secret_key == '' && inputs.gh_app_ID == '' && inputs.gh_token == ''
63
67
shell : bash
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # check if gh binary is available
4
+ if [ -x " $( command -v gh) " ]; then
5
+ echo ' gh cli is installed.'
6
+ exit 0
7
+ fi
8
+
9
+ version=${GH_CLI_VERSION:- 2.8.0}
10
+ echo " Installing gh cli in version: $version "
11
+
12
+ wget https://github.com/cli/cli/releases/download/v${version} /gh_${version} _linux_amd64.tar.gz
13
+ tar -xvf gh_${version} _linux_amd64.tar.gz
14
+ sudo cp $( pwd) /gh_${version} _linux_amd64/bin/gh /usr/local/bin/
You can’t perform that action at this time.
0 commit comments