Skip to content

Commit 4b06fb8

Browse files
committed
check if version has been resolved
1 parent 8e60104 commit 4b06fb8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/branches.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@ jobs:
2525
uses: actions/setup-dotnet@v2
2626
with:
2727
dotnet-version: |
28-
3.1.x
29-
5.0.x
3028
6.0.x
3129
- name: Restore dotnet tools
3230
run: dotnet tool restore
3331
- name: Fetch complete repository including tags
3432
run: git fetch --tags --force --prune && git describe
3533
- name: Generate version info from git history
3634
run: dotnet gitversion /output json | jq -r 'to_entries|map("GitVersion_\(.key)=\(.value|tostring)")|.[]' >> $GITHUB_ENV
35+
- name: Check that the version number has been resolved
36+
if: ${{ !env.GitVersion_SemVer }}
37+
run: |
38+
echo Error! Version number not resolved!
39+
exit 1
3740
- name: Print current version
3841
run: echo "Current version is \"$GitVersion_SemVer\""
3942
- name: Install dependencies

0 commit comments

Comments
 (0)