Fix substring handling in Windows task
This commit is contained in:
7
.github/workflows/release-build.yaml
vendored
7
.github/workflows/release-build.yaml
vendored
@@ -432,12 +432,13 @@ jobs:
|
||||
$version = "${{ inputs.version || 'master' }}"
|
||||
|
||||
if ($version -match "^v[0-9]+") {
|
||||
echo "JELLYFIN_VERSION=$version.Substring(1)" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||
$cleanVersion = $version.Substring(1) # Remove the leading 'v'
|
||||
} else {
|
||||
$dateVersion = Get-Date -Format "yyyyMMddHH"
|
||||
echo "JELLYFIN_VERSION=$dateVersion" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||
$cleanVersion = Get-Date -Format "yyyyMMddHH" # Fallback to timestamp
|
||||
}
|
||||
|
||||
echo "JELLYFIN_VERSION=$cleanVersion" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||
|
||||
- name: "Fetch artifact from previous stage"
|
||||
uses: actions/download-artifact@v4
|
||||
working-directory: ./jellyfin-server-windows
|
||||
|
||||
Reference in New Issue
Block a user