File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 25
25
steps :
26
26
- name : Checkout Code
27
27
uses : actions/checkout@v2
28
+ with :
29
+ ref : ${{ github.head_ref }} # checkout the correct branch name
30
+ fetch-depth : 0 # fetch the whole repo history
28
31
29
32
- name : Git Version
30
33
78
81
steps:
79
82
- name: Checkout Code
80
83
uses: actions/checkout@v2
84
+ with:
85
+ ref: ${{ github.head_ref }} # checkout the correct branch name
86
+ fetch-depth: 0 # fetch the whole repo history
81
87
82
88
- name: Git Version
83
89
@@ -108,8 +114,11 @@ jobs:
108
114
steps:
109
115
- name: Checkout Code
110
116
uses: actions/checkout@v2
117
+ with:
118
+ ref: ${{ github.head_ref }} # checkout the correct branch name
119
+ fetch-depth: 0 # fetch the whole repo history
111
120
112
- - name: Codacy Git Version
121
+ - name: Git Version
113
122
114
123
with:
115
124
prefix: module2-
You can’t perform that action at this time.
0 commit comments