Set fetch-depth: 0 for checkout in CI workflows
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:
Rene Nochebuena 2025-04-09 03:00:46 -06:00
parent 430e0431b2
commit c92275602f
Signed by: Rene Nochebuena
GPG Key ID: A9FD83117EA538D8
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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