diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 65d990e..6abeebd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,8 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v5 + with: + fetch-tags: 'true' - name: Checkout llama.cpp repo uses: actions/checkout@v5 with: @@ -38,12 +40,12 @@ jobs: repo-path: ./llama.cpp - name: Fetch tags run: | - git fetch --prune --prune-tags --depth=1 --no-recurse-submodules + git fetch --tags - name: Determine own tag name id: currenttag - uses: ./.github/actions/get-tag-name - with: - repo-path: . + run: | + BUILD_NUMBER="$(git tag -l | grep 'b*$' | sort -V)" + echo "name=${BUILD_NUMBER}" >> $GITHUB_OUTPUT - name: Save tags id: tags run: |