@@ -13,20 +13,33 @@ jobs:
13
13
sparse-checkout-cone-mode : true
14
14
fetch-depth : 1
15
15
fetch-tags : false
16
+ - name : " Print git --version"
17
+ run : git --version
16
18
- name : " Print .git/config"
17
19
run : cat .git/config
18
20
- name : " dotnet build"
19
21
run : dotnet build
20
22
test2 :
21
23
name :
" actions/runner:2.316.0 + actions/[email protected] "
22
24
runs-on : ubuntu-latest
23
- container : ghcr.io/actions/actions-runner:2.316.0
25
+ container :
26
+ image : ghcr.io/actions/actions-runner:2.316.0
27
+ options : --user 0
24
28
steps :
29
+ - name : " Print git --version"
30
+ run : git --version
31
+ - name : " Update git"
32
+ run : |
33
+ add-apt-repository ppa:git-core/ppa -y
34
+ apt-get update
35
+ apt-get install git -y
25
36
26
37
with :
27
38
sparse-checkout-cone-mode : true
28
39
fetch-depth : 1
29
40
fetch-tags : false
41
+ - name : " Print git --version"
42
+ run : git --version
30
43
- name : " Print .git/config"
31
44
run : cat .git/config
32
45
- uses : actions/setup-dotnet@v4
@@ -37,13 +50,24 @@ jobs:
37
50
test3 :
38
51
name :
" actions/runner:2.316.0 + actions/[email protected] "
39
52
runs-on : ubuntu-latest
40
- container : ghcr.io/actions/actions-runner:2.316.0
53
+ container :
54
+ image : ghcr.io/actions/actions-runner:2.316.0
55
+ options : --user 0
41
56
steps :
57
+ - name : " Print git --version"
58
+ run : git --version
59
+ - name : " Update git"
60
+ run : |
61
+ add-apt-repository ppa:git-core/ppa -y
62
+ apt-get update
63
+ apt-get install git -y
42
64
43
65
with :
44
66
sparse-checkout-cone-mode : true
45
67
fetch-depth : 1
46
68
fetch-tags : false
69
+ - name : " Print git --version"
70
+ run : git --version
47
71
- name : " Print .git/config"
48
72
run : cat .git/config
49
73
- uses : actions/setup-dotnet@v4
0 commit comments