Skip to content

Commit

Permalink
Fix git_describe_working_tree failing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gudnimg committed Oct 8, 2023
1 parent 69e06ba commit fe893f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,15 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
submodules: true
fetch-depth: 0

- name: Checkout ${{ github.event.ref }}
uses: actions/checkout@v3
if: ${{ !github.event.pull_request }}
with:
ref: ${{ github.event.ref }}
submodules: true
fetch-depth: 0

- name: Cache Dependencies
uses: actions/[email protected]
Expand Down Expand Up @@ -126,13 +128,15 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
submodules: true
fetch-depth: 0

- name: Checkout ${{ github.event.ref }}
uses: actions/checkout@v3
if: ${{ !github.event.pull_request }}
with:
ref: ${{ github.event.ref }}
submodules: true
fetch-depth: 0

- name: Cache Dependencies
uses: actions/[email protected]
Expand Down

0 comments on commit fe893f8

Please sign in to comment.