Set fetch-depth: 0
for checkout in CI workflows
All checks were successful
Go CI/CD / go-ci (push) Successful in 10m2s
All checks were successful
Go CI/CD / go-ci (push) Successful in 10m2s
This change ensures that the full Git history is fetched during the checkout step in `ci-tag.yml`, `ci-basic.yml`, and `ci-protected.yml`. It is necessary for workflows that rely on complete commit history, such as version tagging or historical analysis.
This commit is contained in:
parent
430e0431b2
commit
c92275602f
@ -19,6 +19,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v5
|
||||
|
@ -19,6 +19,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v5
|
||||
|
@ -12,6 +12,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v5
|
||||
|
Loading…
x
Reference in New Issue
Block a user