From 1a55968c4d5ea4c6362769bcb439697880c2f77c Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 12 Jul 2024 14:51:14 +0200 Subject: [PATCH] build: fetch complete git history In order to build a image with which contains the correct git version SHA we need to complete git tree. Otherwise 'git describe' only returns the last tag name. Signed-off-by: Daniel Wagner --- .github/workflows/appimage.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/appimage.yml b/.github/workflows/appimage.yml index c8205ef8c9..44d41860b4 100644 --- a/.github/workflows/appimage.yml +++ b/.github/workflows/appimage.yml @@ -17,6 +17,12 @@ jobs: image: ghcr.io/igaw/linux-nvme/debian:latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: describe + run: | + git config --global --add safe.directory /__w/nvme-cli/nvme-cli + git describe - name: build run: | scripts/build.sh appimage