Skip to content

Commit 89003e6

Browse files
committed
Updated release action to use ssh with the repository, add latest location for the scripts to the README
1 parent bffb260 commit 89003e6

File tree

2 files changed

+31
-25
lines changed

2 files changed

+31
-25
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
- name: Push Changes
100100
uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
101101
with:
102-
## ssh: true
102+
ssh: true
103103
atomic: true
104104
branch: main
105105
repository: ${{ github.repository }}
@@ -126,7 +126,7 @@ jobs:
126126
with:
127127
ref: main
128128
repository: ${{ github.repository }}
129-
## ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
129+
ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
130130

131131
- name: Configure Git
132132
shell: bash
@@ -146,6 +146,24 @@ jobs:
146146
CUT_RELEASE_VERSION=$(cat .cut_release_version)
147147
echo "CUT_RELEASE_VERSION=${CUT_RELEASE_VERSION}" >> "$GITHUB_ENV"
148148
149+
- name: Update linux/svtminion.sh sha256sum's
150+
run: |
151+
sha256sum linux/svtminion.sh | awk '{ print $1 }' > svtminion.sh.sha256
152+
sha256sum windows/svtminion.ps1 | awk '{ print $1 }' > svtminion.ps1.sha256
153+
ls -alh
154+
git add svtminion.sh.sha256
155+
git add svtminion.ps1.sha256
156+
git commit -am "Update sha256 checksums" || git commit -am "Update sha256 checksums"
157+
158+
- name: Push Changes
159+
uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
160+
with:
161+
ssh: true
162+
tags: true
163+
atomic: true
164+
branch: main
165+
repository: ${{ github.repository }}
166+
149167
- name: Tag The ${{ needs.update-main.outputs.release-version }} Release
150168
run: |
151169
git tag -f --no-sign -m "Release ${{ needs.update-main.outputs.release-version }}" -a ${{ needs.update-main.outputs.release-version }}
@@ -163,6 +181,8 @@ jobs:
163181
files: |
164182
linux/svtminion.sh
165183
windows/svtminion.ps1
184+
svtminion.sh.sha256
185+
svtminion.ps1.sha256
166186
LICENSE
167187
168188
- name: Delete Release Details Artifact
@@ -186,7 +206,7 @@ jobs:
186206
with:
187207
ref: main
188208
repository: ${{ github.repository }}
189-
## ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
209+
ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
190210

191211
- name: Get linux/svtminion.sh on main branch sha256sum
192212
run: |
@@ -197,7 +217,7 @@ jobs:
197217
with:
198218
ref: main
199219
repository: ${{ github.repository }}
200-
## ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
220+
ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
201221

202222
- name: Configure Git
203223
shell: bash
@@ -224,25 +244,7 @@ jobs:
224244
- name: Push Changes
225245
uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
226246
with:
227-
## ssh: true
228-
atomic: true
229-
branch: main
230-
repository: ${{ github.repository }}
231-
232-
- name: Update linux/svtminion.sh sha256sum's
233-
run: |
234-
sha256sum linux/svtminion.sh | awk '{ print $1 }' > svtminion.sh.sha256
235-
sha256sum windows/svtminion.ps1 | awk '{ print $1 }' > svtminion.ps1.sha256
236-
ls -alh
237-
git add svtminion.sh.sha256
238-
git add svtminion.ps1.sha256
239-
git commit -am "Update sha256 checksums" || git commit -am "Update sha256 checksums"
240-
241-
- name: Push Changes
242-
uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
243-
with:
244-
## ssh: true
245-
tags: true
247+
ssh: true
246248
atomic: true
247249
branch: main
248250
repository: ${{ github.repository }}

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ The SHA256 sum of the `svtminion.sh` file, per release, is:
2626

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

29-
There are also .sha256 files for verifying against in the repo for the main branch. You can also
30-
get the correct sha256 sum for the tagged release from
29+
There are also .sha256 files for verifying against in the repo for the main branch.
30+
You can also get the correct sha256 sum for the tagged release from
3131
https://github.com/saltstack/salt-vmtools/releases/latest/download/svtminion.sh.sha256 and
3232
https://github.com/saltstack/salt-vmtools/releases/latest/download/svtminion.ps1.sha256
3333

34+
The latest versions of the svtminion scripts for Linux and Windows from the following
35+
https://github.com/saltstack/salt-vmtools/releases/latest/download/svtminion.sh and
36+
https://github.com/saltstack/salt-vmtools/releases/latest/download/svtminion.ps1
37+
3438

3539
## Configuration options
3640

0 commit comments

Comments
 (0)