Skip to content

Commit

Permalink
build: fetch complete git history
Browse files Browse the repository at this point in the 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 <dwagner@suse.de>
  • Loading branch information
igaw committed Jul 12, 2024
1 parent 53b4661 commit 739b319
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
image: ghcr.io/igaw/linux-nvme/debian:latest
steps:
- uses: actions/checkout@v4
- name: get tags
run: |
git config --global --add safe.directory /__w/nvme-cli/nvme-cli
git fetch --tags origin
git desribe
- name: build
run: |
scripts/build.sh appimage
Expand Down

0 comments on commit 739b319

Please sign in to comment.