Skip to content

Commit c78283e

Browse files
authored
Update pristine.yml
1 parent abf30f8 commit c78283e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/pristine.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ jobs:
1717
git --version || echo "::warning::could not determine installed version of git"
1818
- name: "Install GH CLI"
1919
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
2227
apt show gh
2328
- name: "Print git --version"
2429
run: |

0 commit comments

Comments
 (0)