File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 17
17
git --version || echo "::warning::could not determine installed version of git"
18
18
- name : " Install GH CLI"
19
19
run : |
20
- apt-get update
21
- apt-get install gh -y
20
+ (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y))
21
+ sudo mkdir -p -m 755 /etc/apt/keyrings
22
+ wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null
23
+ sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg
24
+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
25
+ sudo apt update
26
+ sudo apt install gh -y
22
27
apt show gh
23
28
- name : " Print git --version"
24
29
run : |
You can’t perform that action at this time.
0 commit comments