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:
1919
2020 - name : Download latest release files from hkubectl
2121 run : |
22+ set -e
2223 export latestVersion=$(curl -s https://api.github.com/repos/kube-HPC/hkubectl/releases/latest | jq -r .tag_name)
24+ echo "Latest version: $latestVersion"
2325 mkdir -p site/hkubectl_files || { echo "Failed to create directory"; exit 1; }
2426 curl -L --retry 3 --retry-delay 5 https://github.com/kube-HPC/hkubectl/releases/download/${latestVersion}/hkubectl-linux -o site/hkubectl_files/hkubectl-linux
2527 curl -L --retry 3 --retry-delay 5 https://github.com/kube-HPC/hkubectl/releases/download/${latestVersion}/hkubectl-macos -o site/hkubectl_files/hkubectl-macos
2628 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
2731
2832 - name : Commit and push updated files to kube-HPC.github.io
2933 run : |
34+ set -e
3035 git config --global user.name "GitHub Actions"
3136 git config --global user.email "actions@github.com"
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; }
3339 git commit -m "Update hkubectl download files to the latest release" || echo "No changes to commit"
3440 git push origin main
41+
You can’t perform that action at this time.
0 commit comments