File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 2121
2222 semantic_version_pattern='^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-((0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$'
2323
24- if [[ ${GITHUB_REF/refs\/tags\/v /} =~ $semantic_version_pattern ]]; then
24+ if [[ ${GITHUB_REF/refs\/tags\//} =~ $semantic_version_pattern ]]; then
2525 echo ::set-output name=is_semantic_version::'true'
2626
2727 if [[ ${BASH_REMATCH[4]} != '' ]]; then
Original file line number Diff line number Diff line change @@ -10,17 +10,13 @@ jobs:
1010 name : Extract Release Information
1111 runs-on : ubuntu-latest
1212 outputs :
13- version : ${{ steps.version .outputs.version }}
14- notes : ${{ steps.notes .outputs.notes }}
13+ version : ${{ steps.get_release .outputs.tag_name }}
14+ notes : ${{ steps.get_release .outputs.body }}
1515 steps :
16- - id : release
16+ - id : get_release
1717 uses :
bruceadams/[email protected] 1818 env :
1919 GITHUB_TOKEN : ${{ github.token }}
20- - id : version
21- run : echo ::set-output name=version::${steps.release.tag_name#v}
22- - id : notes
23- run : echo ::set-output name=notes::${steps.release.body}
2420
2521 nuget :
2622 name : Publish to Nuget.org
You can’t perform that action at this time.
0 commit comments