forked from hicksjacobp/checkout-test
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.6 KB
/
pristine.yml
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
32
33
34
35
36
37
38
39
40
41
42
name: "Install GH CLI"
on:
workflow_dispatch:
jobs:
pristine-install:
name: "Install GH CLI on a Pristine Container"
runs-on: ubuntu-latest
container:
image: ubuntu:jammy
options: --user 0
steps:
- name: "Print git --version"
run: |
which git || echo "::warning::git does not appear to be installed"
git --version || echo "::warning::could not determine installed version of git"
- name: "Configure apt"
run: |
apt update
apt-get install wget -y
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: "Print git --version"
run: |
which git || echo "::warning::git does not appear to be installed"
git --version || echo "::warning::could not determine installed version of git"
# - name: "Print .git/config"
# run: cat .git/config