Skip to content

Commit cdabfbd

Browse files
committed
Format the shasum files correctly
1 parent 4fa9236 commit cdabfbd

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ jobs:
148148
149149
- name: Update linux/svtminion.sh sha256sum's
150150
run: |
151-
sha256sum linux/svtminion.sh | awk '{ print $1 }' > svtminion.sh.sha256
152-
sha256sum windows/svtminion.ps1 | awk '{ print $1 }' > svtminion.ps1.sha256
151+
sha256sum linux/svtminion.sh > svtminion.sh.sha256
152+
sha256sum windows/svtminion.ps1 > svtminion.ps1.sha256
153153
git add svtminion.sh.sha256
154154
git add svtminion.ps1.sha256
155155
git commit --allow-empty -am "Update sha256 checksums" || git commit --allow-empty -am "Update sha256 checksums"

.github/workflows/scripts/update-release-shasum.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,21 @@ def main(version, sha256sum):
1616
out_contents = ""
1717
found_anchor = False
1818
updated_version = False
19-
if version not in in_contents:
20-
for line in in_contents.splitlines(True):
21-
if updated_version:
22-
out_contents += line
23-
continue
24-
if found_anchor:
25-
if not line.startswith("-"):
26-
out_contents += line
27-
continue
28-
out_contents += f"- {version}: `{sha256sum}`\n"
19+
for line in in_contents.splitlines(True):
20+
if updated_version:
21+
out_contents += line
22+
continue
23+
if found_anchor:
24+
if not line.startswith("-"):
2925
out_contents += line
30-
updated_version = True
3126
continue
32-
27+
out_contents += f"- {version}: `{sha256sum}`\n"
3328
out_contents += line
34-
if line.startswith("## _sha256sums:"):
35-
found_anchor = True
29+
updated_version = True
30+
continue
31+
if line.startswith("## _sha256sums:"):
32+
found_anchor = True
33+
out_contents += line
3634
if in_contents != out_contents:
3735
README_PATH.write_text(out_contents)
3836

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ order.
1414
Name Nick Email
1515
========================== ===================== ============================
1616
David Murphy david [email protected]
17-
Shane Lee twangboy share[email protected]
17+
Shane Lee twangboy shane[email protected]

0 commit comments

Comments
 (0)