Skip to content

Commit 64428b8

Browse files
authored
Merge pull request #19 from dmurphy18/fix_cut_release_10
Fixing final workflow for updating README.md with sha256sums
2 parents 5ccf9b0 + 6ec08e1 commit 64428b8

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,10 @@ jobs:
298298
run: |
299299
sha256sum linux/svtminion.sh | awk '{ print $1 }' > svtminion.sh.sha256
300300
sha256sum windows/svtminion.ps1 | awk '{ print $1 }' > svtminion.ps1.sha256
301-
git commit -a -m "Update sha256 checksums" || git commit -a -m "Update sha256 checksums"
301+
ls -alh
302+
git add svtminion.sh.sha256
303+
git add svtminion.ps1.sha256
304+
git commit -am "Update sha256 checksums" || git commit -am "Update sha256 checksums"
302305
303306
- name: Push Changes
304307
uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ def main(version, sha256sum):
2525
if not line.startswith("-"):
2626
out_contents += line
2727
continue
28-
out_contents += "- {}: ``{}``\n".format(version, sha256sum)
28+
out_contents += f"- {version}: `{sha256sum}`\n"
2929
out_contents += line
3030
updated_version = True
3131
continue
3232

3333
out_contents += line
34-
if line.startswith("## _sha256sums"):
34+
if line.startswith("## _sha256sums:"):
3535
found_anchor = True
3636
if in_contents != out_contents:
3737
README_PATH.write_text(out_contents)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ commonly referred to as guestVars.
1717
In every two-step installation example, you would be well-served to **verify against the SHA256
1818
sum** of the downloaded `svtminion.sh` file.
1919

20-
## _sha256sums
20+
## _sha256sums:
2121

2222
The SHA256 sum of the `svtminion.sh` file, per release, is:
2323

24+
- 2024.12.04: `e7f4d7b242bd495c63e7b3240631411fbe65ac966ff2c1ef93399ceda9b5719f`
2425

2526
If you're looking for a *one-liner* to install Salt Minion, please read below.
2627

@@ -98,7 +99,6 @@ script action cannot be obtained from `tools.conf`.
9899

99100
Any input passed to the script on the command line will take precedence over:
100101

101-
- 2024.12.04: ``e7f4d7b242bd495c63e7b3240631411fbe65ac966ff2c1ef93399ceda9b5719f``
102102
- The action and config options set in guestVars
103103
- Anything configured in `tools.conf` with the same name.
104104

0 commit comments

Comments
 (0)