File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,23 @@ jobs:
19
19
20
20
- name : Download latest release files from hkubectl
21
21
run : |
22
+ set -e
22
23
export latestVersion=$(curl -s https://api.github.com/repos/kube-HPC/hkubectl/releases/latest | jq -r .tag_name)
24
+ echo "Latest version: $latestVersion"
23
25
mkdir -p site/hkubectl_files || { echo "Failed to create directory"; exit 1; }
24
26
curl -L --retry 3 --retry-delay 5 https://github.com/kube-HPC/hkubectl/releases/download/${latestVersion}/hkubectl-linux -o site/hkubectl_files/hkubectl-linux
25
27
curl -L --retry 3 --retry-delay 5 https://github.com/kube-HPC/hkubectl/releases/download/${latestVersion}/hkubectl-macos -o site/hkubectl_files/hkubectl-macos
26
28
curl -L --retry 3 --retry-delay 5 https://github.com/kube-HPC/hkubectl/releases/download/${latestVersion}/hkubectl-win.exe -o site/hkubectl_files/hkubectl-win.exe
29
+ echo "Downloaded files:"
30
+ ls -R site
27
31
28
32
- name : Commit and push updated files to kube-HPC.github.io
29
33
run : |
34
+ set -e
30
35
git config --global user.name "GitHub Actions"
31
36
git config --global user.email "[email protected] "
32
- git add hkubectl_files/*
37
+ ls site/hkubectl_files || { echo "No files found"; exit 1; }
38
+ git add site/hkubectl_files/* || { echo "git add failed"; exit 1; }
33
39
git commit -m "Update hkubectl download files to the latest release" || echo "No changes to commit"
34
40
git push origin main
41
+
You can’t perform that action at this time.
0 commit comments