Use sed to get package version (#75)
The sed tool is more fitting than grep in this case.
This commit is contained in:
parent
8fabbfef8c
commit
832e8d27aa
1 changed files with 1 additions and 1 deletions
2
.github/workflows/desktop-release.yml
vendored
2
.github/workflows/desktop-release.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
|||
echo ::set-output name=jar_file::\
|
||||
$(echo ./desktop/build/libs/*.jar)
|
||||
echo ::set-output name=version::\
|
||||
$(echo ./desktop/build/libs/*.jar | grep -Po -- '(?<=-)(.+?)(?=\.jar)')
|
||||
$(echo ./desktop/build/libs/*.jar | sed 's/.*-\([0-9.]\+\)\.jar/\1/')
|
||||
|
||||
- name: Create release
|
||||
id: create_release
|
||||
|
|
Loading…
Reference in a new issue