forked from hicksjacobp/checkout-test
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 870 Bytes
/
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
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:latest
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: "Install GH CLI"
run: |
apt-get update
apt-get 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