Add git fetch for gitversion
This commit is contained in:
parent
9fefe30f64
commit
4d6aab5601
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build-and-test.yml
vendored
4
.github/workflows/build-and-test.yml
vendored
|
@ -8,6 +8,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Fetch unshallow
|
||||||
|
run: git fetch --prune --tags --unshallow
|
||||||
- name: Install GitVersion
|
- name: Install GitVersion
|
||||||
uses: gittools/actions/gitversion/setup@v0.9.7
|
uses: gittools/actions/gitversion/setup@v0.9.7
|
||||||
with:
|
with:
|
||||||
|
@ -15,8 +17,6 @@ jobs:
|
||||||
- name: Determine Version
|
- name: Determine Version
|
||||||
id: gitversion
|
id: gitversion
|
||||||
uses: gittools/actions/gitversion/execute@v0.9.7
|
uses: gittools/actions/gitversion/execute@v0.9.7
|
||||||
- name: Semver
|
|
||||||
run: echo $GITVERSION_SEMVER
|
|
||||||
- name: Setup dotnet
|
- name: Setup dotnet
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue