Skip to content

Commit

Permalink
fix curl
Browse files Browse the repository at this point in the history
  • Loading branch information
PrashantMohta committed Aug 21, 2024
1 parent 23195b6 commit 8b6793c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-modlinks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
#install pip packages
#cp ../../../.github/workflows/requirements.txt ./requirements.txt
#pip install -r requirements.txt
curl --output $ASSET_NAME $DOWNLOAD_LINK
curl -L --output $ASSET_NAME $DOWNLOAD_LINK
SHA256=$(python sha256.py $ASSET_NAME)
python update-modlinks.py "$PROJECT_NAME" "$LATEST_TAG" "$DOWNLOAD_LINK" "$SHA256"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/sha256.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@


BUF_SIZE = 65536
md5 = hashlib.md5()
sha256 = hashlib.sha256()

with open(name, 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
break
md5.update(data)
sha256.update(data)

print("{0}".format(sha256.hexdigest()))

0 comments on commit 8b6793c

Please sign in to comment.