Skip to content

Commit db91cf1

Browse files
authored
Update publish.yml
1 parent 06ece99 commit db91cf1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish
33
on:
44
push:
55
tags:
6-
- 'v*' # Publish on any new tag
6+
- 'v*' # Publish on any new tag matching v*, i.e. v1.0, v1.7.2
77

88
jobs:
99
build:
@@ -18,7 +18,8 @@ jobs:
1818
- name: Get version from tag
1919
id: tag_name
2020
run: |
21-
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
21+
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/}
22+
shell: bash
2223
- uses: actions/checkout@v3
2324
- name: Setup dotnet
2425
uses: actions/setup-dotnet@v2

0 commit comments

Comments
 (0)