Skip to content

Commit 789d50c

Browse files
authored
Merge branch '103' into master
2 parents d034c5d + 638ed0d commit 789d50c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/dotnet.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,12 @@ jobs:
3737
VERSION_REGEX: '<AssemblyVersion>(.*)<\/AssemblyVersion>'
3838
NUGET_KEY: ${{secrets.NUGET_KEY}}
3939
if: github.event_name != 'pull_request'
40-
41-
- name: Retrieve version
42-
id: proj_version
43-
uses: KageKirin/get-csproj-version@v0
44-
with:
45-
file: src/sika/sika.csproj
46-
xpath: '//PropertyGroup/AssemblyVersion'
4740

4841
- name: Create release
4942
env:
5043
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
VERSION: ${{ steps.proj_version.version }}
5244
run: |
53-
gh release create "v$VERSION" \
45+
version="$(grep '<AssemblyVersion>' src/sika/sika.csproj | grep -oE '([0-9]+\.){2}[0-9]+')"
46+
gh release create "v$version" \
5447
--repo="$GITHUB_REPOSITORY" \
5548
--generate-notes

0 commit comments

Comments
 (0)