From 0150f740920295ce361937290ff11fbd49f6c01f Mon Sep 17 00:00:00 2001
From: Philippe Coval <philippe.coval@silabs.com>
Date: Tue, 18 Feb 2025 10:36:37 +0100
Subject: [PATCH] SWPROT-8953: ci: Pull annotated tag

After further investigations, the reason that script failed to use
the git describe in github it because of a bug in related github action

Relate-to: https://github.com/actions/checkout/pull/2081
Origin: https://github.com/SiliconLabsSoftware/z-wave-protocol-controller/pull/42
Relate-to: https://github.com/SiliconLabsSoftware/z-wave-protocol-controller/pull/35
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
---
 .github/workflows/build-rootfs.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build-rootfs.yml b/.github/workflows/build-rootfs.yml
index 449edd856..da7086867 100644
--- a/.github/workflows/build-rootfs.yml
+++ b/.github/workflows/build-rootfs.yml
@@ -16,9 +16,12 @@ jobs:
           - arm64
           # - armhf # TODO Enable when supported
     steps:
-      - uses: actions/checkout@v4.1.1
+      - uses: actions/checkout@v4.2.2
         with:
           fetch-depth: 0
+          # Relate-to: https://github.com/actions/checkout/pull/2081#2025
+          ref: ${{ github.ref }}
+
       - id: describe
         name: Describe HEAD
         run: >-