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.
This commit is contained in:
Guðni Már Gilbert 2023-10-08 14:38:42 +00:00
parent 69e06bac84
commit fe893f8289
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,7 @@ jobs:
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
submodules: true submodules: true
fetch-depth: 0
- name: Checkout ${{ github.event.ref }} - name: Checkout ${{ github.event.ref }}
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -88,6 +89,7 @@ jobs:
with: with:
ref: ${{ github.event.ref }} ref: ${{ github.event.ref }}
submodules: true submodules: true
fetch-depth: 0
- name: Cache Dependencies - name: Cache Dependencies
uses: actions/cache@v3.0.11 uses: actions/cache@v3.0.11
@ -126,6 +128,7 @@ jobs:
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
submodules: true submodules: true
fetch-depth: 0
- name: Checkout ${{ github.event.ref }} - name: Checkout ${{ github.event.ref }}
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -133,6 +136,7 @@ jobs:
with: with:
ref: ${{ github.event.ref }} ref: ${{ github.event.ref }}
submodules: true submodules: true
fetch-depth: 0
- name: Cache Dependencies - name: Cache Dependencies
uses: actions/cache@v3.0.11 uses: actions/cache@v3.0.11