File tree 1 file changed +50
-0
lines changed
1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Git Version Check"
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ test1 :
8
+ name : " Check Git Version on ubuntu-latest"
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ # - uses: actions/[email protected]
12
+ # with:
13
+ # sparse-checkout-cone-mode: true
14
+ # fetch-depth: 1
15
+ # fetch-tags: false
16
+ - name : " Print git --version"
17
+ run : git --version
18
+ # - name: "Print .git/config"
19
+ # run: cat .git/config
20
+ # - name: "dotnet build"
21
+ # run: dotnet build
22
+ test2 :
23
+ name : " Check Git Version on actions/runner:2.316.0"
24
+ runs-on : ubuntu-latest
25
+ container :
26
+ image : ghcr.io/actions/actions-runner:2.316.0
27
+ options : --user 0
28
+ steps :
29
+ # - name: "Update git"
30
+ # run: |
31
+ # apt-get update
32
+ # apt-get install git -y
33
+ # apt-get install curl -y
34
+ # - uses: actions/[email protected]
35
+ # with:
36
+ # sparse-checkout-cone-mode: true
37
+ # fetch-depth: 1
38
+ # fetch-tags: false
39
+ - name : " Print git --version"
40
+ run : |
41
+ which git
42
+ git --version || true
43
+ # - name: "Print .git/config"
44
+ # run: cat .git/config
45
+ # - uses: actions/setup-dotnet@v4
46
+ # with:
47
+ # dotnet-version: '8.0.204'
48
+ # - name: "dotnet build"
49
+ # run: dotnet build
50
+
You can’t perform that action at this time.
0 commit comments