Skip to content

Commit 5a26979

Browse files
style: don't include the "v" in tags
1 parent cee3884 commit 5a26979

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/create-release-draft.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
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

.github/workflows/publish-nuget.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)