From 46fbf3d51c8374e6bca0043e254992c6d790ceb4 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sun, 1 Nov 2020 09:35:51 +0100 Subject: [PATCH] fix: use pwsh to generate hashes the hashes generated by hashfiles() somehow aren't correct --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d9ff250..ee68c847 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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