CI: Fix win arm version defect (#6940)

write-host in powershell writes directly to the console and will not be picked
up by a pipe.  Echo, or write-output will.
This commit is contained in:
Daniel Hiltgen 2024-09-24 15:18:10 -07:00 committed by GitHub
parent 35bb6d32b3
commit e9e9bdb8d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -354,7 +354,7 @@ jobs:
- name: Set Version - name: Set Version
run: | run: |
$ver=${env:GITHUB_REF_NAME}.trim("v") $ver=${env:GITHUB_REF_NAME}.trim("v")
write-host VERSION=$ver | Out-File -FilePath ${env:GITHUB_ENV} -Encoding utf8 -Append echo VERSION=$ver | Out-File -FilePath ${env:GITHUB_ENV} -Encoding utf8 -Append
- uses: 'google-github-actions/auth@v2' - uses: 'google-github-actions/auth@v2'
with: with:
project_id: 'ollama' project_id: 'ollama'