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:
parent
69e06bac84
commit
fe893f8289
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue