Skip to content

Commit e4b6afd

Browse files
committed
debugging points
1 parent 343aa25 commit e4b6afd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/update-hkubectl-downloads.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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 "[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; }
3339
git commit -m "Update hkubectl download files to the latest release" || echo "No changes to commit"
3440
git push origin main
41+

0 commit comments

Comments
 (0)