From c92275602f7689a311e4bb418d1b9c25bd7318a2 Mon Sep 17 00:00:00 2001 From: Rene Nochebuena Date: Wed, 9 Apr 2025 03:00:46 -0600 Subject: [PATCH] Set `fetch-depth: 0` for checkout in CI workflows 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. --- .gitea/workflows/ci-basic.yml | 2 ++ .gitea/workflows/ci-protected.yml | 2 ++ .gitea/workflows/ci-tag.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.gitea/workflows/ci-basic.yml b/.gitea/workflows/ci-basic.yml index 9ce8bc3..b17134d 100644 --- a/.gitea/workflows/ci-basic.yml +++ b/.gitea/workflows/ci-basic.yml @@ -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 diff --git a/.gitea/workflows/ci-protected.yml b/.gitea/workflows/ci-protected.yml index 5e2a18c..35994eb 100644 --- a/.gitea/workflows/ci-protected.yml +++ b/.gitea/workflows/ci-protected.yml @@ -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 diff --git a/.gitea/workflows/ci-tag.yml b/.gitea/workflows/ci-tag.yml index a7e78dd..7fcf0ea 100644 --- a/.gitea/workflows/ci-tag.yml +++ b/.gitea/workflows/ci-tag.yml @@ -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