Skip to content

Commit d6ddcac

Browse files
committed
minor string manipulation changes
1 parent 88e898b commit d6ddcac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ jobs:
5858
- name: Set Version Unix
5959
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-13' }}
6060
run: |
61-
export VERSION=$(ls desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 | grep -oP 'desktop-\K[0-9]+\.[0-9]+\.[0-9]+')
61+
export VERSION=$(ls desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 | grep -Eo 'desktop-[0-9]+\.[0-9]+\.[0-9]+' | sed 's/desktop-//')
6262
echo "VERSION=$VERSION" >> $GITHUB_ENV
6363
- name: Set Version Windows
6464
if: ${{ matrix.os == 'windows-latest' }}
6565
run: |
6666
$VERSION = (Get-ChildItem -Path desktop\build\temp-*/binaries\desktop-*.jar.SHA-256).Name -replace 'desktop-', '' -replace '-.*', ''
67-
echo "VERSION=$VERSION" >> $GITHUB_ENV
67+
"VERSION=$VERSION" | Out-File -FilePath $env:GITHUB_ENV -Append
6868
shell: powershell
6969

7070
- name: Move Release Files on Unix

0 commit comments

Comments
 (0)