Skip to content

Commit fa06788

Browse files
authored
Merge pull request #41 from codacy/docs/improve-readme
docs: Add ref and fetch depth to action docs
2 parents 8c26a07 + 5a98673 commit fa06788

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
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/[email protected]
@@ -78,6 +81,9 @@ jobs:
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/[email protected]
@@ -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/[email protected]
114123
with:
115124
prefix: module2-

0 commit comments

Comments
 (0)