Skip to content

Commit

Permalink
#45 Use PowerShell function over GitHub hashFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbechtold committed Jul 27, 2020
1 parent 0f8b713 commit 6dc9c75
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,11 @@ jobs:
pathTarget: artifacts/timerecorder-dirt-rally-2.0.zip

- name: Hash zip files
env:
dr1_hash: ${{hashFiles('artifacts/timerecorder-dirt-rally.zip')}}
dr2_hash: ${{hashFiles('artifacts/timerecorder-dirt-rally-2.0.zip')}}
run: |
echo "timerecorder-dirt-rally-2.0.zip SHA256: $env:dr2_hash"
echo "timerecorder-dirt-rally.zip SHA256: $env:dr1_hash"
$dr1_hash = (Get-FileHash -Algorithm SHA256 artifacts/timerecorder-dirt-rally.zip).Hash
$dr2_hash = (Get-FileHash -Algorithm SHA256 artifacts/timerecorder-dirt-rally-2.0.zip).Hash
echo "timerecorder-dirt-rally-2.0.zip SHA256: $dr2_hash"
echo "timerecorder-dirt-rally.zip SHA256: $dr1_hash"
- name: Archive artifacts
uses: actions/upload-artifact@v1
Expand Down

0 comments on commit 6dc9c75

Please sign in to comment.