mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
fix: use pwsh to generate hashes
the hashes generated by hashfiles() somehow aren't correct
This commit is contained in:
parent
64b537b2f5
commit
46fbf3d51c
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
@ -74,10 +74,10 @@ jobs:
|
|||
- name: Hash
|
||||
id: hash
|
||||
run: |
|
||||
hash=${{ hashFiles(matrix.ARTIFACT) }}
|
||||
echo $hash > ${{ matrix.ARTIFACT }}.sha256
|
||||
echo "::set-output name=hash_${{ matrix.os }}::${hash}"
|
||||
shell: bash
|
||||
$fileHash = Get-FileHash ${{ matrix.ARTIFACT }} -Algorithm SHA256
|
||||
$fileHash.Hash | Out-File -Encoding 'UTF8' ${{ matrix.ARTIFACT }}.sha256
|
||||
Write-Output "::set-output name=hash_${{ matrix.os }}::$($fileHash.Hash)"
|
||||
shell: pwsh
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
|
|
Loading…
Reference in a new issue