From 1d104357a50d76ad7dff94e3809e98c9b572075a Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Tue, 13 Aug 2024 15:36:55 +0200 Subject: [PATCH] ci: fetch the whole repo when setting build meta (#6017) We need the whole repository history to get information about specific commits to set some build metadata, such as BUILD_VERSION. --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d30e9003..53288d51 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -35,7 +35,7 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 with: - fetch-depth: 2 + fetch-depth: 0 - name: Set build metadata run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec5ae62b..b98115e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 with: - fetch-depth: 2 + fetch-depth: 0 - name: Set build metadata id: set-container-image-build-metadata