Skip to content

Commit

Permalink
use pwsh for version extract
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol committed Nov 3, 2024
1 parent b98f8a7 commit 1d3f9e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ jobs:
name: windows-binary
path: $GITHUB_WORKSPACE/build/package/windows/
- id: version
run: echo "version=${GITHUB_REF##*/}" | sed 's/^v//' | tee -a $GITHUB_ENV
shell: pwsh
run: |
$version = $env:GITHUB_REF -replace 'refs/tags/v', ''
echo "version=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- env:
MSI_NAME: "${{ github.event.repository.name }}-${{ github.event.release.tag_name }}-windows.msi"
VERSION: ${{ env.version }}
Expand Down

0 comments on commit 1d3f9e9

Please sign in to comment.