Skip to content

Commit e6c0839

Browse files
committed
ci(github): add fetch-depth option to checkout step in workflows
1 parent 844ef77 commit e6c0839

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/default.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ jobs:
2323
COVERPROFILE: coverage.out
2424
steps:
2525
- uses: actions/checkout@v4
26-
with:
27-
fetch-depth: 0
28-
2926
- uses: actions/setup-go@v5
3027
with:
3128
go-version: ${{ matrix.go-version }}

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
2830

2931
- name: Set up Go
3032
uses: actions/setup-go@v5

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
issues: write
1818
steps:
1919
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
2022
- uses: actions/setup-go@v5
2123
with:
2224
go-version-file: ${{ github.workspace }}/go.mod

0 commit comments

Comments
 (0)