From fb22e873cd25036ffb536221f9af23d3a47562a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 11 Jul 2025 00:04:55 +0200 Subject: [PATCH] gh: Fix released VERSION file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `/opt/kata/VERSION` file, which is created using `git describe --tags`, requires the newly released tag to be updated in order to be accurate. To do so, let's add a `fetch-tags: true` to the checkout action used during the `create-kata-tarball` job. Signed-off-by: Fabiano FidĂȘncio --- .github/workflows/build-kata-static-tarball-amd64.yaml | 1 + .github/workflows/build-kata-static-tarball-arm64.yaml | 1 + .github/workflows/build-kata-static-tarball-ppc64le.yaml | 1 + .github/workflows/build-kata-static-tarball-s390x.yaml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/build-kata-static-tarball-amd64.yaml b/.github/workflows/build-kata-static-tarball-amd64.yaml index fb6a184af5..86dcc3d95c 100644 --- a/.github/workflows/build-kata-static-tarball-amd64.yaml +++ b/.github/workflows/build-kata-static-tarball-amd64.yaml @@ -327,6 +327,7 @@ jobs: with: ref: ${{ inputs.commit-hash }} fetch-depth: 0 + fetch-tags: true persist-credentials: false - name: Rebase atop of the latest target branch run: | diff --git a/.github/workflows/build-kata-static-tarball-arm64.yaml b/.github/workflows/build-kata-static-tarball-arm64.yaml index c520c37159..71142a39a4 100644 --- a/.github/workflows/build-kata-static-tarball-arm64.yaml +++ b/.github/workflows/build-kata-static-tarball-arm64.yaml @@ -297,6 +297,7 @@ jobs: with: ref: ${{ inputs.commit-hash }} fetch-depth: 0 + fetch-tags: true persist-credentials: false - name: Rebase atop of the latest target branch run: | diff --git a/.github/workflows/build-kata-static-tarball-ppc64le.yaml b/.github/workflows/build-kata-static-tarball-ppc64le.yaml index 3857db9fb4..2f4be990f8 100644 --- a/.github/workflows/build-kata-static-tarball-ppc64le.yaml +++ b/.github/workflows/build-kata-static-tarball-ppc64le.yaml @@ -240,6 +240,7 @@ jobs: with: ref: ${{ inputs.commit-hash }} fetch-depth: 0 + fetch-tags: true persist-credentials: false - name: Rebase atop of the latest target branch run: | diff --git a/.github/workflows/build-kata-static-tarball-s390x.yaml b/.github/workflows/build-kata-static-tarball-s390x.yaml index 1b9bdf7590..ac7220aaaa 100644 --- a/.github/workflows/build-kata-static-tarball-s390x.yaml +++ b/.github/workflows/build-kata-static-tarball-s390x.yaml @@ -326,6 +326,7 @@ jobs: with: ref: ${{ inputs.commit-hash }} fetch-depth: 0 + fetch-tags: true persist-credentials: false - name: Rebase atop of the latest target branch run: |