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 e23ee99
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
image: ghcr.io/igaw/linux-nvme/debian:latest
steps:
- uses: actions/checkout@v4
- name: fetch tags
run: |
git config --global --add safe.directory /__w/nvme-cli/nvme-cli
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: describe
run: |
git describe
- name: build
run: |
scripts/build.sh appimage
Expand Down

0 comments on commit e23ee99

Please sign in to comment.