File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 steps :
2626 - name : Checkout Code
2727 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
2831
2932 - name : Git Version
3033 uses : codacy/git-version@2.2.0
7881 steps:
7982 - name: Checkout Code
8083 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
8187
8288 - name: Git Version
8389 uses: codacy/git-version@2.2.0
@@ -108,8 +114,11 @@ jobs:
108114 steps:
109115 - name: Checkout Code
110116 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
111120
112- - name: Codacy Git Version
121+ - name: Git Version
113122 uses: codacy/git-version@2.2.0
114123 with:
115124 prefix: module2-
You can’t perform that action at this time.
0 commit comments