From 08cdf2f5713aedeb04b29edd9576a5080cf44f27 Mon Sep 17 00:00:00 2001 From: John Wesley Walker III <81404201+jww3@users.noreply.github.com> Date: Fri, 3 May 2024 17:21:55 +0200 Subject: [PATCH] Update pristine.yml --- .github/workflows/pristine.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pristine.yml b/.github/workflows/pristine.yml index 57072e0..4205e0f 100644 --- a/.github/workflows/pristine.yml +++ b/.github/workflows/pristine.yml @@ -22,16 +22,15 @@ jobs: apt-get install software-properties-common -y add-apt-repository ppa:git-core/ppa apt update - apt install git -y - # - name: "Install GH CLI" - # run: | - # mkdir -p -m 755 /etc/apt/keyrings - # wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null - # chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg - # echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null - # apt update - # apt install gh -y - # apt show gh + - name: "Install GH CLI" + run: | + mkdir -p -m 755 /etc/apt/keyrings + wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null + chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg + echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null + apt update + apt install gh -y + apt show gh - name: "Print git --version" run: | which git || echo "::warning::git does not appear to be installed"