Skip to content

Commit

Permalink
Try pyhton for sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Apr 14, 2020
1 parent f18e6b2 commit a7a5866
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/update-chocolatey-jabref-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,17 @@ jobs:
steps:
- name: Determine sha256 sums
id: checksum
shell: bash
shell: python
run: |
wget https://builds.jabref.org/master/JabRef-5.1.msi -o /tmp/jabref.msi
echo ::set-output checksum::`sha256sum < /tmp/jabref.msi | sed s/ .*//`
from urllib.request import urlretrieve
import hashlib
tmpfile, headers = urlretrieve('https://builds.jabref.org/master/JabRef-5.1.msi')
hash = hashlib.sha256()
with open(tmpfile, "rb") as f:
for chcunk in iter(lambda: f.read(4096), b"")
hash.update(chunk)
print(f'::set-output name=secretspresent::{hash.hexdigest()}')
- name: Checkout source
uses: actions/checkout@v2
- name: Fetch all history for all tags and branches
Expand Down

0 comments on commit a7a5866

Please sign in to comment.