Skip to content

Commit e5b12e7

Browse files
committed
include --tags switch on git fetch in github actions
1 parent 1509f93 commit e5b12e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/branches-ubuntu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
fetch-depth: 0
2020
- name: Restore dotnet tools
2121
run: dotnet tool restore
22-
- name: Fetch complete repository
23-
run: git fetch
22+
- name: Fetch complete repository including tags
23+
run: git fetch --tags && git describe
2424
- name: Generate version info from git history
2525
run: dotnet gitversion /output json > gitversion.json
2626
- name: Upload version info file

.github/workflows/main-ubuntu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
fetch-depth: 0
2424
- name: Restore dotnet tools
2525
run: dotnet tool restore
26-
- name: Fetch complete repository
27-
run: git fetch
26+
- name: Fetch complete repository including tags
27+
run: git fetch --tags && git describe
2828
- name: Generate version info from git history
2929
run: dotnet gitversion /output json > gitversion.json
3030
- name: Upload version info file

0 commit comments

Comments
 (0)