Skip to content

Commit a0f522f

Browse files
committed
Fixed workflow file error
1 parent 7edc006 commit a0f522f

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,7 @@ jobs:
7878
7979
cd ..
8080
81-
python - <<'EOF'
82-
import hashlib, pathlib, os
83-
84-
file = pathlib.Path("$ZIP_NAME")
85-
sha = hashlib.sha256(file.read_bytes()).hexdigest()
86-
87-
with open("checksums.txt", "a") as f:
88-
f.write(f"{sha} {file.name}\n")
89-
EOF
81+
python -c 'import hashlib, pathlib, sys; p=pathlib.Path(sys.argv[1]); sha=hashlib.sha256(p.read_bytes()).hexdigest(); open("checksums.txt","a",encoding="utf-8").write(f"{sha} {p.name}\\n")' "$ZIP_NAME"
9082
9183
- name: Upload artifact
9284
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)