File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -21,23 +21,18 @@ jobs:
2121 run : |
2222 set -e
2323 export latestVersion=$(curl -s https://api.github.com/repos/kube-HPC/hkubectl/releases/latest | jq -r .tag_name)
24- echo "Latest version: $latestVersion"
25- mkdir -p site/hkubectl_files || { echo "Failed to create directory"; exit 1; }
24+ mkdir -p site/hkubectl_files
2625 curl -L --retry 3 --retry-delay 5 https://github.com/kube-HPC/hkubectl/releases/download/${latestVersion}/hkubectl-linux -o site/hkubectl_files/hkubectl-linux
2726 curl -L --retry 3 --retry-delay 5 https://github.com/kube-HPC/hkubectl/releases/download/${latestVersion}/hkubectl-macos -o site/hkubectl_files/hkubectl-macos
2827 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
3128
3229 - name : Commit and push updated files to kube-HPC.github.io
3330 run : |
3431 set -e
3532 git config --global user.email "action@github.com"
3633 git config --global user.name "GitHub Action"
37- ls site/hkubectl_files || { echo "No files found"; exit 1; }
38- git fetch origin
3934 git checkout test_branch_1 || git checkout -b test_branch_1 origin/test_branch_1
4035 git add -A
41- git commit -m "Update hkubectl download files to the latest release" --allow-empty
36+ git commit -m "Update hkubectl download files to the latest release"
4237 git push origin test_branch_1
4338
You can’t perform that action at this time.
0 commit comments