File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments