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 <[email protected]>
  • Loading branch information
igaw committed Jul 12, 2024
1 parent 53b4661 commit 1a55968
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a55968

Please sign in to comment.