From fe893f828992f45672627037e3a5dfc84cfe8029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sun, 8 Oct 2023 14:38:42 +0000 Subject: [PATCH] Fix git_describe_working_tree failing The command /usr/bin/git describe --abbrev=0 --dirty=-D --broken=-B Was returning error code 128 and no output. In the workflow file, specifying fetch-depth = 0, will make sure to fetch all branches and tags. This seems to fix the issue. --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5b19ff044..fcc64952bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,6 +81,7 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} submodules: true + fetch-depth: 0 - name: Checkout ${{ github.event.ref }} uses: actions/checkout@v3 @@ -88,6 +89,7 @@ jobs: with: ref: ${{ github.event.ref }} submodules: true + fetch-depth: 0 - name: Cache Dependencies uses: actions/cache@v3.0.11 @@ -126,6 +128,7 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} submodules: true + fetch-depth: 0 - name: Checkout ${{ github.event.ref }} uses: actions/checkout@v3 @@ -133,6 +136,7 @@ jobs: with: ref: ${{ github.event.ref }} submodules: true + fetch-depth: 0 - name: Cache Dependencies uses: actions/cache@v3.0.11